7 ms·
You can just add a generic version tag function that takes a tag name as its first param to solve that issue. Lets you create your own generator functions with
by tomtheelder 3y ago
You can just add a generic version tag function that takes a tag name as its first param to solve that issue. Lets you create your own generator functions with ease for tags that aren’t included by default. Don’t see any reason you can’t add a comment() function either.
If you use a template string like that then you lose a lot in terms of type checking/IDE tooling/etc unless you add a ton of complexity, which is antithetical to this library’s goals. I definitely think they went with the right option.