I am new to Dust.js and I have just gone thru "the only" complete tutorial I am able to find on the internet (https://github.com/linkedin/dustjs/wiki/Dust-Tutorial). Now, I have some understanding on it, try to experiment around to get better understanding.
From my understanding, we can put the template on the main page so it will look something like this:
<script type="text/x-template" id="itemTemplate">
{company}
{#employees}
<div> Name: {name}</div>
{/employees}
</script>
I tried putting the content into mytemplate.tl
and load it from script.
<script type="text/x-template" id="itemTemplate" src="template/mytemplate.tl"></script>
But it did work. How can I put that template externally?
Thank you.