9 ms·
I really like the fact that partials are handled as HTML-like markup instead of the HTML just happening to be within some other template system. Kudos on that d
by Stampo00 5y ago
I really like the fact that partials are handled as HTML-like markup instead of the HTML just happening to be within some other template system. Kudos on that design choice!
- malkosta 5y agoThanks! That made it easier to handle this usecase: <partial src="partials/layout.html"> My fancy content </partial> Because I can use HTML parsers. But now I'm thinking of a way to remove all dependencies, to I will have to get rid of html parser, and find a way to those substitutions without parsing HTML, with just regex replacement.