Skip to content

Instantly share code, notes, and snippets.

@vybs
Created December 12, 2011 19:53
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save vybs/1468810 to your computer and use it in GitHub Desktop.
Save vybs/1468810 to your computer and use it in GitHub Desktop.
news articles dust template
{! article dust template with partials for polling and pagination !}
<div id="today_feed" class="grid unit_8">
<div id="today_feed-updates" class="unit_8 alpha omega">
{>"Polling"/}
</div>
<div id="today_feed-articles" class="unit_8 alpha omega">
<ul class="articles">
{#content}{#news_container_section}{#newsList}
{>"Article"/}
{/newsList}{/news_container_section}{/content}
</ul>
</div>
<div id="today_feed-pagination" class="unit_8 alpha omega">
{>"Pagination"/}
</div>
</div>
@semanio
Copy link

semanio commented Apr 5, 2013

@cratygs - you have to parse the Dust template server-side with Node.JS or Rhino then send the result to the browser in order to achieve SEO friendliness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment