Module: Typstify::ErbPipeline
- Defined in:
- lib/typstify/erb_pipeline.rb
Overview
ERB mode: .typ.erb templates are ordinary ERB whose output is Typst
source. Provided for teams migrating from wicked_pdf who want their existing
view habits; data mode is the one to reach for.
The distinction that matters: in data mode a user string is data all the way
down and cannot change the document. Here it is spliced into source, so
every dynamic value must go through typ(). That is not a style preference
— an unescaped value is code injection.
Defined Under Namespace
Classes: Context
Class Method Summary collapse
-
.render(source, data: nil, assigns: {}) ⇒ String
Typst source.