{"action":"created","issue":{"url":"https://api.github.com/repos/BorisMoore/jsrender/issues/260","labels_url":"https://api.github.com/repos/BorisMoore/jsrender/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/BorisMoore/jsrender/issues/260/comments","events_url":"https://api.github.com/repos/BorisMoore/jsrender/issues/260/events","html_url":"https://github.com/BorisMoore/jsrender/issues/260","id":86823375,"number":260,"title":"composition of templates or template of templates ?","user":{"login":"yiakwy","id":8510840,"avatar_url":"https://avatars.githubusercontent.com/u/8510840?v=3","gravatar_id":"","url":"https://api.github.com/users/yiakwy","html_url":"https://github.com/yiakwy","followers_url":"https://api.github.com/users/yiakwy/followers","following_url":"https://api.github.com/users/yiakwy/following{/other_user}","gists_url":"https://api.github.com/users/yiakwy/gists{/gist_id}","starred_url":"https://api.github.com/users/yiakwy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiakwy/subscriptions","organizations_url":"https://api.github.com/users/yiakwy/orgs","repos_url":"https://api.github.com/users/yiakwy/repos","events_url":"https://api.github.com/users/yiakwy/events{/privacy}","received_events_url":"https://api.github.com/users/yiakwy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-10T03:45:21Z","updated_at":"2015-06-18T14:28:02Z","closed_at":null,"body":"For e.g, I have a series of templates, like t1, t2, t3...\r\n\r\nI want to use them to generate a template by some hints like {order: ['t2', 't3', 't1'...]}\r\n\r\nI learn JsRender API carefully but I didn't figure out an approach to it. \r\n\r\nAnyone can help me on this! Urgent!\r\n\r\nIf that is impossible for the current version, I would like to make pull request to enhance the api.\r\n\r\nMy current approach is using jquery to assemble templates. But My ideal approach is using lexical parser to parser it by using stacks where one is pointing to order list or some other hints to generate template automatically. \r\n\r\nHence I would like \"template of templates or generation\" could also be the feature of JsRender. This will relieve the the awkward by using such engine while other ugly engine like php can easily resolve it."},"comment":{"url":"https://api.github.com/repos/BorisMoore/jsrender/issues/comments/113172794","html_url":"https://github.com/BorisMoore/jsrender/issues/260#issuecomment-113172794","issue_url":"https://api.github.com/repos/BorisMoore/jsrender/issues/260","id":113172794,"user":{"login":"yiakwy","id":8510840,"avatar_url":"https://avatars.githubusercontent.com/u/8510840?v=3","gravatar_id":"","url":"https://api.github.com/users/yiakwy","html_url":"https://github.com/yiakwy","followers_url":"https://api.github.com/users/yiakwy/followers","following_url":"https://api.github.com/users/yiakwy/following{/other_user}","gists_url":"https://api.github.com/users/yiakwy/gists{/gist_id}","starred_url":"https://api.github.com/users/yiakwy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiakwy/subscriptions","organizations_url":"https://api.github.com/users/yiakwy/orgs","repos_url":"https://api.github.com/users/yiakwy/repos","events_url":"https://api.github.com/users/yiakwy/events{/privacy}","received_events_url":"https://api.github.com/users/yiakwy/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T14:28:02Z","updated_at":"2015-06-18T14:28:02Z","body":"Your solution doesn't resolve my qeustion because $.render(data, template, {heplers:...}) does not touch data. I wish there is a machinism that template will be dynamic according to data.\r\n\r\nI want data has some dynamic hints where template can adapt itself according to these hints.\r\n\r\nFor example tmpl=#x where x should be a variable. However I have test this can not go through with JsRender. "}}