template
template copied to clipboard
Use of `error`
Currently templatewill call an
errorif the template string is malformed, for error-handling there's
templateSafethat returns an
Either`.
I think it would be nicer if the library defined an error type (e.g. TemplateError
) and template
would throw that instead of an error
.
This could be nicely combined with my proposed solution to #13.