Last active
October 5, 2015 17:18
This file contains hidden or 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
-# 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