{"action":"created","issue":{"url":"https://api.github.com/repos/cantino/huginn/issues/1587","repository_url":"https://api.github.com/repos/cantino/huginn","labels_url":"https://api.github.com/repos/cantino/huginn/issues/1587/labels{/name}","comments_url":"https://api.github.com/repos/cantino/huginn/issues/1587/comments","events_url":"https://api.github.com/repos/cantino/huginn/issues/1587/events","html_url":"https://github.com/cantino/huginn/pull/1587","id":165949171,"number":1587,"title":"Liquid output agent","user":{"login":"darrencauthon","id":148768,"avatar_url":"https://avatars.githubusercontent.com/u/148768?v=3","gravatar_id":"","url":"https://api.github.com/users/darrencauthon","html_url":"https://github.com/darrencauthon","followers_url":"https://api.github.com/users/darrencauthon/followers","following_url":"https://api.github.com/users/darrencauthon/following{/other_user}","gists_url":"https://api.github.com/users/darrencauthon/gists{/gist_id}","starred_url":"https://api.github.com/users/darrencauthon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrencauthon/subscriptions","organizations_url":"https://api.github.com/users/darrencauthon/orgs","repos_url":"https://api.github.com/users/darrencauthon/repos","events_url":"https://api.github.com/users/darrencauthon/events{/privacy}","received_events_url":"https://api.github.com/users/darrencauthon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-07-16T21:49:02Z","updated_at":"2016-07-18T13:38:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cantino/huginn/pulls/1587","html_url":"https://github.com/cantino/huginn/pull/1587","diff_url":"https://github.com/cantino/huginn/pull/1587.diff","patch_url":"https://github.com/cantino/huginn/pull/1587.patch"},"body":"@cantino There is still documentation and cleanup to do here, but this is the idea I mentioned on Twitter a week or so ago.\r\n\r\nThis is an agent that will produce a string output, just like the data output agent.  The difference is that it's wide-open to be anything that's a string - a html page, javascript, whatever.  This agent stores the payload of the last event it received into memory, and then passes that payload through liquid templating and renders the output via a URL.  The content and mime type can be configured.\r\n\r\nI use Huginn to process data that I check often.  Huginn sends me messages, RSS feeds, etc., but this would allow output in many other forms.   \r\n\r\nI have a very simple example below.  I set up a liquid output agent that receives names through events, and then produces a javascript page that alerts that name.  I then set up another liquid output agent that produces a HTML page that links to that javascript page.  I can then go to that web page and the last name the first agent receives will show up as an alert.\r\n\r\nThoughts?\r\n\r\n![huginn_and_comparing_cantino_master___darrencauthon_liquid_output_agent_ _cantino_huginn_and_huginn](https://cloud.githubusercontent.com/assets/148768/16897324/782c6acc-4b73-11e6-9237-6d788d81d63f.png)\r\n\r\n\r\n![mozilla_firefox_and_comparing_cantino_master___darrencauthon_liquid_output_agent_ _cantino_huginn](https://cloud.githubusercontent.com/assets/148768/16897328/99099076-4b73-11e6-95ec-f06e8fda5615.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cantino/huginn/issues/comments/233330747","html_url":"https://github.com/cantino/huginn/pull/1587#issuecomment-233330747","issue_url":"https://api.github.com/repos/cantino/huginn/issues/1587","id":233330747,"user":{"login":"darrencauthon","id":148768,"avatar_url":"https://avatars.githubusercontent.com/u/148768?v=3","gravatar_id":"","url":"https://api.github.com/users/darrencauthon","html_url":"https://github.com/darrencauthon","followers_url":"https://api.github.com/users/darrencauthon/followers","following_url":"https://api.github.com/users/darrencauthon/following{/other_user}","gists_url":"https://api.github.com/users/darrencauthon/gists{/gist_id}","starred_url":"https://api.github.com/users/darrencauthon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrencauthon/subscriptions","organizations_url":"https://api.github.com/users/darrencauthon/orgs","repos_url":"https://api.github.com/users/darrencauthon/repos","events_url":"https://api.github.com/users/darrencauthon/events{/privacy}","received_events_url":"https://api.github.com/users/darrencauthon/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T13:38:53Z","updated_at":"2016-07-18T13:38:53Z","body":"- [ ] Rename \"secrets\" to \"secret.\""}}
{"actor":{"display_login":"darrencauthon"}}