0

I have a number of templates in my html file like

<script id="id1" type="text/template">
  -----
</script>
<script id="tid2" type="text/template">
  -----
</script> -----
----------

This is working fine ,I need to know,is it possible to move these templates into an external file (javascript or some other type),because i need a large number of templates for my html file,so this will make large number of lines .Not easy to debug or edit.

Shijin TR
  • 6,709
  • 8
  • 37
  • 99

1 Answers1

0

Move each script in a seperate html or jsp file (if you use) and include them in your pages as

<link rel="import" href="/path/scriptPage1.jsp"> or 
<c:import url="/path/scriptPage1.jsp"/>
Kith
  • 79
  • 4