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

Using < operator in .html file, 'Expected tag name after ...' #33

Open
HunjaeJung opened this issue Jun 18, 2015 · 1 comment
Open

Using < operator in .html file, 'Expected tag name after ...' #33

HunjaeJung opened this issue Jun 18, 2015 · 1 comment

Comments

@HunjaeJung
Copy link

Server Side

SSR.compileTemplate('hello', Assets.getText('hello.html'));

private/hello.html

<head>
  <script type="text/javascript">
     if(1<2) console.log('hello SSR');
  </script> 
</head>
<body>
...
</body>
Error: Expected tag name after `<` ...avascript"> if(1<2) console.log('hell... ^ at [object Object].Scanner.fatal (packages/html-tools/scanner.js:45:1) at HTMLTools.Parse.getTagToken (packages/html-tools/tokenize.js:373:1) at HTMLTools.Parse.getHTMLToken (packages/html-tools/tokenize.js:274:1) at HTMLTools.Parse.getContent (packages/html-tools/parse.js:110:1) at HTMLTools.Parse.getContent (packages/html-tools/parse.js:174:1) at HTMLTools.Parse.getContent (packages/html-tools/parse.js:174:1) at HTMLTools.Parse.getContent (packages/html-tools/parse.js:174:1) at Object.HTMLTools.parseFragment (packages/html-tools/parse.js:36:1) at Object.SpacebarsCompiler.parse (packages/spacebars-compiler/compiler.js:4:1) at Object.SpacebarsCompiler.compile (packages/spacebars-compiler/compiler.js:12:1)

I think this is the problem, right?

@HunjaeJung
Copy link
Author

What is the best way to server side rendering javascript?

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

1 participant