Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-05-18 | templates: trim windows whitespace in SplitFrontMatter; fix #3386 (#3387) | Thorkild Gregersen | |
* add test case for SplitFrontMatter showing issue with windows newline * fix issue with windows newline when using SplitFrontMatter * Update modules/caddyhttp/templates/frontmatter.go Co-authored-by: Francis Lavoie <lavofr@gmail.com> * make it mere explicit what is trimmed from firstLine * Update modules/caddyhttp/templates/frontmatter.go Co-authored-by: Francis Lavoie <lavofr@gmail.com> Co-authored-by: Matt Holt <mholt@users.noreply.github.com> | |||
2020-04-06 | templates: Use text/template; add experimental notice to docs | Matthew Holt | |
Using html/template.HTML like we were doing before caused nested include to be HTML-escaped, which breaks sites. Now we do not escape any of the output; template input is usually trusted, and if it's not, users should employ escaping actions within their templates to keep it safe. The docs already said this. | |||
2019-12-23 | templates: Change functions, add front matter support, better markdown | Matthew Holt | |
2019-06-30 | Add license | Matthew Holt | |
2019-06-27 | Use html/template for escaping by default | Matthew Holt | |
Allow HTML only with a few specific functions | |||
2019-06-21 | Oops | Matthew Holt | |
2019-06-18 | templates: Remove context functions implemented by sprig | Matthew Holt | |
2019-06-18 | Implement templates handler; various minor cleanups and bug fixes | Matthew Holt | |