Safe by design
An AST interpreter handles templates. Knap does not use eval or execute arbitrary JavaScript.
A template engine for Markdown
Knap brings variables, logic, loops, and a focused filter library to Markdown—without evaluating arbitrary JavaScript.
1# {{ title | trim | title }}23{% if author %}4By {{ author.name }}5{% endif %}67{% for tag in tags %}8- {{ tag | lower }}9{% endfor %}pnpm add knapSmall language, clear contract
An AST interpreter handles templates. Knap does not use eval or execute arbitrary JavaScript.
Your app supplies variables, asynchronous resolvers, and custom filters. Knap stays independent of any host environment.
Errors and warnings include stable codes, messages, lines, and columns for editor tooling and helpful user feedback.