mikel-press 0.23.0 → 0.25.0

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.js +1 -4
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -65,7 +65,7 @@ import press from "mikel-press";
65
65
  press({
66
66
  source: ".",
67
67
  destination: "./www",
68
- template: mikel.create("", {
68
+ template: mikel.create({
69
69
  // define your custom helpers and functions here
70
70
  }),
71
71
  title: "Hello world",
package/index.js CHANGED
@@ -259,10 +259,7 @@ press.ContentPagePlugin = (siteData = {}) => {
259
259
  },
260
260
  transform: (context, node) => {
261
261
  if (node.label === press.LABEL_PAGE && typeof node.content === "string") {
262
- context.template.use(ctx => {
263
- ctx.tokens = mikel.tokenize(node.content || "");
264
- });
265
- node.content = context.template({site: siteData, page: node});
262
+ node.content = context.template(node.content || "", {site: siteData, page: node});
266
263
  }
267
264
  },
268
265
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mikel-press",
3
3
  "description": "A tiny and fast static site generator based on mikel templating",
4
- "version": "0.23.0",
4
+ "version": "0.25.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": {