Skip to content

Instantly share code, notes, and snippets.

@inossidabile
Last active October 5, 2015 17:18
-# Your templates are in HAML out of box.
-# But you can use any other templating language as well.
-# Use Sugar.JS and Coffee!
- @posts.each (post) =>
.well
-# Encapsulate your code with widgets
!= @widget 'div', => new TitleEditorWidget(post)
%hr
%p
-# Enjoy models interface
= post.body().truncate(20)
%a.btn.btn-mini{:href => "#!/posts/#{post.id()}"}
Read it!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment