@11ty/client 4.0.0-alpha.5 → 4.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eleventy.core.js +143 -91
- package/dist/eleventy.js +3096 -3081
- package/dist/formats/eleventy-liquid.js +10 -6
- package/dist/formats/eleventy-markdown.js +1 -1
- package/dist/formats/eleventy-nunjucks.js +197 -277
- package/dist/plugins/eleventy-plugin-i18n.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Eleventy v4.0.0-alpha.
|
|
1
|
+
/*! Eleventy v4.0.0-alpha.6 (@11ty/client/liquid Engine Bundle) */
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -7729,6 +7729,7 @@ var Liquid2 = class _Liquid extends TemplateEngine {
|
|
|
7729
7729
|
}
|
|
7730
7730
|
async compile(str, inputPath) {
|
|
7731
7731
|
let engine = this.liquidLib;
|
|
7732
|
+
let liquidOptions = this.liquidOptions;
|
|
7732
7733
|
let tmplReady = engine.parse(str, inputPath);
|
|
7733
7734
|
let options = {};
|
|
7734
7735
|
if (!inputPath || inputPath === "liquid" || inputPath === "md") {
|
|
@@ -7737,11 +7738,14 @@ var Liquid2 = class _Liquid extends TemplateEngine {
|
|
|
7737
7738
|
}
|
|
7738
7739
|
return async function(data) {
|
|
7739
7740
|
let tmpl = await tmplReady;
|
|
7740
|
-
options.globals =
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7741
|
+
options.globals = Object.assign(
|
|
7742
|
+
{
|
|
7743
|
+
page: data?.page,
|
|
7744
|
+
eleventy: data?.eleventy,
|
|
7745
|
+
collections: data?.collections
|
|
7746
|
+
},
|
|
7747
|
+
liquidOptions?.globals
|
|
7748
|
+
);
|
|
7745
7749
|
return engine.render(tmpl, data, options);
|
|
7746
7750
|
};
|
|
7747
7751
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Eleventy v4.0.0-alpha.
|
|
1
|
+
/*! Eleventy v4.0.0-alpha.6 (@11ty/client/md Engine Bundle) */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
4
|
var __export = (target, all) => {
|