Better description

Andrew Cantino %!s(int64=8) %!d(string=hace) años
padre
commit
4dd4c1c6cf
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 0
      CHANGES.md
  2. 1 1
      app/models/agents/website_agent.rb

+ 1 - 0
CHANGES.md

@@ -1,5 +1,6 @@
1 1
 # Changes
2 2
 
3
+* Dec 26, 2015   - WebsiteAgent can accept a `data_from_event` Liquid template instead of a URL.
3 4
 * Oct 17, 2015   - TwitterSearchAgent added for running period Twitter searches.
4 5
 * Oct 17, 2015   - GapDetectorAgent added to alert when no data has been seen in a certain period of time.
5 6
 * Oct 12, 2015   - Slack agent supports attachments.

+ 1 - 1
app/models/agents/website_agent.rb

@@ -24,7 +24,7 @@ module Agents
24 24
 
25 25
       * If the Event contains a `url` key, that URL will be fetched.
26 26
       * For more control, you can set the `url_from_event` option and it will be used as a Liquid template to generate the url to access based on the Event.
27
-      * If you set `data_from_event` to the [JSONPath](http://goessner.net/articles/JsonPath/) of content in the Event, that will be used directly without fetching any URL.
27
+      * If you set `data_from_event` to a Liquid template, it will be used to generate the data directly without fetching any URL.  (For example, set it to `{{ html }}` to use HTML contained in the `html` key of the incoming Event.)
28 28
       * If you specify `merge` for the `mode` option, Huginn will retain the old payload and update it with the new values.
29 29
 
30 30
       # Supported Document Types