In this sample, we have local data (string "hello world" and the name you typed), but page templates
are remote (here we just put them in same folder of local filesystem in order to demo without web server).
so we use the Jscp.Updater.updateWithRemptePage() method to render it. Some interesting, isn't it?
Read this sample's HTML source for full details.
Any idea come? yes, JSCP automatically cache the page template content. In this sample,
only on first click the template content would be get from remote (here local file system),
on next clicks, it use cached content, until you refresh the whole page in web browser.
NOTE
Template files should be UTF-8 encoding, if they contain non-ASCII characters.
In this sample, we have local data (string "hello world" and the name you typed), but page templates are remote (here we just put them in same folder of local filesystem in order to demo without web server). so we use the Jscp.Updater.updateWithRemptePage() method to render it. Some interesting, isn't it?
Read this sample's HTML source for full details.
Any idea come? yes, JSCP automatically cache the page template content. In this sample, only on first click the template content would be get from remote (here local file system), on next clicks, it use cached content, until you refresh the whole page in web browser.
NOTETemplate files should be UTF-8 encoding, if they contain non-ASCII characters.