Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for post in posts
- $('#posts').append "
- <section class='post #{color[i]}' data-post='#{post.id}'>
- <div class='date' data-date='24/12/2011'>
- <span class='number'>#{post.createdAt.getDate()}</span>
- <span class='month'>#{month_abbr[post.createdAt.getMonth()]}</span>
- </div>
- <header>
- <h1><a href='#'>#{post.title}</a></h1>
- </header>
- <article>
- #{post.content}
- </article>
- </section>
- "
Add Comment
Please, Sign In to add comment