{"action":"opened","issue":{"url":"https://api.github.com/repos/jjn1056/Template-Pure/issues/4","repository_url":"https://api.github.com/repos/jjn1056/Template-Pure","labels_url":"https://api.github.com/repos/jjn1056/Template-Pure/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/jjn1056/Template-Pure/issues/4/comments","events_url":"https://api.github.com/repos/jjn1056/Template-Pure/issues/4/events","html_url":"https://github.com/jjn1056/Template-Pure/issues/4","id":142962878,"number":4,"title":"Template::Pure::Result","user":{"login":"jjn1056","id":67652,"avatar_url":"https://avatars.githubusercontent.com/u/67652?v=3","gravatar_id":"","url":"https://api.github.com/users/jjn1056","html_url":"https://github.com/jjn1056","followers_url":"https://api.github.com/users/jjn1056/followers","following_url":"https://api.github.com/users/jjn1056/following{/other_user}","gists_url":"https://api.github.com/users/jjn1056/gists{/gist_id}","starred_url":"https://api.github.com/users/jjn1056/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjn1056/subscriptions","organizations_url":"https://api.github.com/users/jjn1056/orgs","repos_url":"https://api.github.com/users/jjn1056/repos","events_url":"https://api.github.com/users/jjn1056/events{/privacy}","received_events_url":"https://api.github.com/users/jjn1056/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-23T13:45:39Z","updated_at":"2016-03-23T13:45:39Z","closed_at":null,"body":"One thing that comes up is that I'd like to build up transforms to a template over several calls to a render like method.  That way if you have a transform pipeline you can avoid the need to maintain a state object.\r\n\r\nPerhaps we could have a type of result intermediate class:\r\n\r\n```\r\nmy $result = Template::Pure->document(\r\n  template => $template,\r\n  directives => \\@directives);\r\n\r\n$result = $result->render($data, \\@extra, @args);\r\n$result = $result->render($data, \\@extra, @args);\r\n```\r\n...\r\n\r\nand then\r\n\r\n`my $html = $result->final;`\r\n\r\n"}}