Samples in script

Name Description Groovy script Link
Aggregate feeds Aggregates Yahoo and CNN feeds. source
Sort feed entries Sort entries of the aggregated feed from Yahoo and CNN by title in ascending order. source
Filter feed entries by keywords, render by Atom view Filter the entries of the aggregated feed from Yahoo and CNN by keywords 'U.S.'. Then render with Zero Atom view support. source
Filter feed entries by expression in Groovy closure Filter the entries of the aggregated feed from Yahoo and CNN whose entry summary contains 'U.S.'. source
Truncate feed entries Return the first latest 10 entries from an sorted feed from Yahoo and CNN. Then render String of feed content directly. source
Render feed in RSS format As same as "truncate feed entries" sample in data but render result in RSS2.0 format. source
Render feed over Groovy template Demonstrate accessing feed over DOM API in a ready Groovy template. source template
Render feed by custom view Demonstrate accessing feed over Abdera API. source
Movie Search

Search DVD from Amazon by movie title Matrix, it will return 5 items in XML format.

Note:

In order to play with some script invoking Amazon ECS service, you need to configure your access ID key so that the zero.assemble.flow.samples module can access Amazon on your behalf. This is accomplished by adding an entry to your config/zero.config file. The entry looks like the following example:

/config/amazon/accessKeyId="xyxyxyxyxyxyxyxyxyxy"
				

source