Example with external template files #129

Closed
bennyn opened this Issue Jan 29, 2013 · 2 comments

Comments

Projects
None yet
3 participants
@bennyn

bennyn commented Jan 29, 2013

There is this code on the Hogan.JS page:

<script src="/js/hogan.js"></script> <script src="/js/my-templates.js"></script> <script> var context = { variable: 'myVariable' }; var partial = { partial: myPartial }; var template = myTemplate.render(context, partial); document.body.innerHTML = template; </script>

This code indicates that the Hogan templates can be stored in external files. But the code is not detailed enough to show that. Is there somewhere a complete example?

Otherwise, I see this as a documentation bug.

@driscollwebdev

This comment has been minimized.

Show comment
Hide comment

bump.

@sayrer

This comment has been minimized.

Show comment
Hide comment
@sayrer

sayrer Aug 19, 2013

Collaborator

There's no code in Hogan to handle external template files. However, there are many projects that integrate Hogan into node.js servers, and do have this capability.

Collaborator

sayrer commented Aug 19, 2013

There's no code in Hogan to handle external template files. However, there are many projects that integrate Hogan into node.js servers, and do have this capability.

@sayrer sayrer closed this Aug 19, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment