The SmartPage template allows you to quickly create your own content rich pages by using your favorite news dapp.
All you need to do is follow these 3 simple steps:
Go to Dapper and create a dapp that extracts these fields:
There are already a couple of dapps you can use right off the bat:
The best place to experiment with your dapp is on your user page. Just register and click on MyPage in the top left corner to go to your own page. Now click "New Page" and start experimenting away!
Now, all you need to do is type in the following. This will use the default YahooTopStory dapp.
{{ template.smartpage{ } }} Or to switch to another dapp, invoke the template like this:
{{ template.smartpage{ name: 'CnnTopStory' } }} Finally, if your dapp requires arguments or an input uri, you can pass them in as well:
{{ template.smartpage{ name: 'MyDapp', input: 'http://my-uri', args: { var: 'value' } } }}