Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments in templates #12

Open
doc-hex opened this issue Jun 4, 2020 · 1 comment
Open

Comments in templates #12

doc-hex opened this issue Jun 4, 2020 · 1 comment

Comments

@doc-hex
Copy link

doc-hex commented Jun 4, 2020

Sure would be nice to have comments in templates. Jinja-style {# ... #} style.

At first, single-line comments... that would easy, just a "regex and done". But I also use them for commenting-out sections, so really they need to support multiple lines.

@pfalcon
Copy link
Owner

pfalcon commented Jun 9, 2020

utemplate's aim is minimalism, and I myself didn't have a need for template comments so far. (Though I may imagine that my latest commits from #12 could use comments to describe the feature inline in the template, instead of a commit message).

I may imagine a good proposal to add comments would start with surveying what other well-known Python template engines offer in that regard and what subset of that functionality makes sense to support (given the aim of minimalism).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants