From a22f6a55ae65ca3675f7c97a030560e91d5b4d1f Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 9 Sep 2018 19:43:43 -0400 Subject: js: update api, add luigi-compat.js and test/compat --- js/luigi-compat.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 js/luigi-compat.js (limited to 'js/luigi-compat.js') diff --git a/js/luigi-compat.js b/js/luigi-compat.js new file mode 100644 index 0000000..c4bcc1a --- /dev/null +++ b/js/luigi-compat.js @@ -0,0 +1,12 @@ +'use strict'; + +/** + * Include this file to maintain compatibility with older (pre-0.4.2) + * versions of Luigi Template. + */ +var LuigiTemplate = Luigi.Template; +LuigiTemplate.prototype.Cache = Luigi.Cache; +LuigiTemplate.run = Luigi.run; +LuigiTemplate.FILTERS = Luigi.FILTERS; +LuigiTemplate.Cache = Luigi.Cache; +LuigiTemplate.cache = Luigi.cache; -- cgit v1.2.3