Papercraft 1.1 released #111
noteflakes
announced in
Updates
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Papercraft 1.1 has been released!
Papercraft is an innovative templating engine for dynamically producing HTML, XML or JSON using plain Ruby code, with easier debugging, better protection against injection attacks, and better code reuse.
Papercraft 1.1 introduces direct iteration. In HTML templates we often need to iterate over a list of items, and normally we'll do this by wrapping the markup for each item inside of an
#each
call. Here's an example:With direct iteration, you can now pass the data source directly to the relevant tag by using the special
_for
attribute:For more information on Papercraft, visit the repository: https://github.com/digital-fabric/papercraft
Beta Was this translation helpful? Give feedback.
All reactions