Created
December 12, 2011 19:53
-
-
Save vybs/1468810 to your computer and use it in GitHub Desktop.
news articles dust template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{! 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> |
we use backbone.js and other libraries as mini mvc on client.
there is a callback using set timeout I assume ( it was done one of our front end web-devs, I can get more details if you'd like )
Will these pages be SEO friendly? Will google bot make the template substitution before crawling the page content?
@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
How does the polling here work? How does it know what to poll?