java - How to use CSS/jQuery and other kind of script files with StringTemplate4? -
i trying build simple html page dynamic information. using stringtemplate 4 simple core java achieve this. have actions perform on page hiding , showing divs able achieve using jquery. beautify page little , want use basic css this. of have included in template files , able work it. sample mentioned below:
sample(employee) ::=<< <html> <head> <script src="jquery min js file location"></script> <script> jquery(document).ready(function() { jquery code }); </script> <style type="text/css"> css code </style> <body> <div> employee name : $employee.name$ </div> </body> </html> >>
however, making template files lot bloated , separate in respective files , include them in normal html files below:
sample(employee) ::=<< <html> <head> <script src="jquery min js file location"></script> <script scr="jsfile"></script> <link rel="stylesheet" type="text/css" href="cssfile" /> <body> <div> employee name : $employee.name$ </div> </body> </html> >>
is possible?
Comments
Post a Comment