2 unstable releases

0.1.0 Nov 30, 2022
0.0.0 Nov 28, 2022

#836 in Text processing

MPL-2.0 license

115KB
3K SLoC

Comment

  • surrounded by parentheses {# and #}
{% filter comment %}

comment block

{% end %}

Whitespace Control

Saha Supports LF only!

  • {%=: Destroy all whitespace on the left

  • {%-: Destroy all blank lines on the left

  • {%_: Destroy left whitespace, and the first newline encountered

  • {%!: destroy left whitespace, but exclude newlines

  • =%}: Destroy all whitespace on the right

  • -%}: Destroy all blank lines on the right

  • _%}: Destroy right whitespace, and the first newline encountered

  • !%}: destroy right whitespace, but exclude newlines

Dependencies

~255–360KB
~10K SLoC