Papercraft 3.0 introduces a redesigned rendering API that moves template operations from Proc extensions to explicit module methods (Papercraft.render and Papercraft.apply), addressing concerns about extending Ruby's core Proc class. The release adds improved XML support with self-closing tags, streamlines the Papercraft::Template wrapper class, and previews upcoming automatic template inlining using AST manipulation with Prism for significant performance improvements when composing complex templates.

6m read timeFrom noteflakes.com
Post cover image
Table of contents
A New Rendering APIImproved XML SupportA Streamlined Papercraft::Template ClassComing Soon: Support for InliningIt’s AST’s All the Way Down!

Sort: