gobuffalo / plush

The powerful template system that Go needs
MIT License
901 stars 56 forks source link

Allow to change _START _END tokens #97

Closed ghost closed 3 years ago

ghost commented 5 years ago

Hi, we love Plush very much, we use it in our open source project https://oya.sh/ as a engine for rendering. It would very helpful to be able to change starting(S_START, C_START, E_START) and ending(E_END) tokens to something else. I came up with something like this allowing user to change those tokens with token.SetTemplatingDelimiters(start, end) and fetch them with token.Resolve. I had quite a problem with naming convention in lexer so feel free to point out everything you see. thanks

ghost commented 5 years ago

Found some fixes!

all right! ;)

paganotoni commented 3 years ago

Closing because of no recent activity.