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

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

@arif-pixako

Description

@arif-pixako

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions