I've been developing a Cordova application.
I know the Visionmedia EJS is a server-side tool. Can I use Visionmedia EJS on client side without node.js?
For instance I want to create 3 part for my application. The parts are layout.ejs, homepage.ejs and user.ejs (a sub-page). Can I arrange like the following? Is it possible?
my layout EJS file
<!DOCTYPE html>
<html>
<body>
<%- body %>
</body>
</html>
my homepage EJS file
<div>
<% include user.ejs %>
</div>
my user.ejs file
<div data-role="page" id="page-user">
username: <%- user.username %>
firstname: <%- user.firstname %>
lastname: <%- user.lastname %>
</div>
Use the following process:
src
of<script>
tagsHere is an example:
References