Skip to content
This repository has been archived by the owner on Mar 30, 2020. It is now read-only.

How to use ejs template for loading dynamic data? #18

Open
arif-pixako opened this issue Sep 7, 2017 · 0 comments
Open

How to use ejs template for loading dynamic data? #18

arif-pixako opened this issue Sep 7, 2017 · 0 comments

Comments

@arif-pixako
Copy link

when i use ejs Template and include

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

in it, it gives errors while compiling like
ERROR in ./~/html-webpack-plugin/lib/loader.js!./src/html/app.ejs
Module build failed: SyntaxError: src\html\app.ejs:74
72|
73|
>> 74| <% var arr = JSON.parse(posts);
75| for(var i = 0; i < arr.length; i++)
76| {%>
77|
after removing jquery link it works fine.

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

No branches or pull requests

1 participant