Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layout-use error #2

Closed
aselvaraj opened this issue Oct 3, 2014 · 1 comment
Closed

layout-use error #2

aselvaraj opened this issue Oct 3, 2014 · 1 comment

Comments

@aselvaraj
Copy link
Contributor

layout-use throws "SyntaxError: Unexpected token ILLEGAL"

module.exports = function create(__helpers) {
  var str = __helpers.s,
      empty = __helpers.e,
      notEmpty = __helpers.ne,
      ______layouts_default_layout_marko = __helpers.l(require.resolve("../../layouts/default-layout.marko")),
      node_modules_marko_node_modules_marko_layout_use_tag = require("node_modules\\marko\\node_modules\\marko-layout\\use-tag"),
      _tag = __helpers.t,
      node_modules_marko_node_modules_marko_layout_put_tag = require("node_modules\\marko\\node_modules\\marko-layout\\put-tag");

  return function render(data, out) {
    _tag(out,
      node_modules\marko\node_modules\marko_layout\use_tag,
      {
        "template": ______layouts_default_layout_marko,
        "*": {
          "showHeader": true
        }
      },
      function(_layout) {
        out.w(' ');
        _tag(out,
          node_modules\marko\node_modules\marko_layout\put_tag,
          {
            "into": "title",
            "layout": _layout
          },
          function() {
            out.w('My Page');
          });

        out.w(' ');
        _tag(out,
          node_modules\marko\node_modules\marko_layout\put_tag,
          {
            "into": "body",
            "layout": _layout
          },
          function() {
            out.w('BODY CONTENT');
          });

        out.w(' ');
      });

    out.w(' ');
  };
}
@patrick-steele-idem
Copy link
Contributor

Thanks for reporting the Windows issue. I don't have a Windows machine/VM to test, but it should be fixed with the following new version of marko: marko@1.2.16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants