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

Possible to import html files? #26

Closed
abenz1267 opened this issue May 23, 2017 · 2 comments
Closed

Possible to import html files? #26

abenz1267 opened this issue May 23, 2017 · 2 comments
Labels

Comments

@abenz1267
Copy link

Hello,

is it possible to import html files and QTC still interpreting quicktemplate syntax? Cat will import the html as a string and therefore ignore quicktemplate syntax for variables etc.

Reason is: working with .qtpl files without html autocomplete etc. is somewhat tiresome.....

Did i miss something?

Regards

@erginduran
Copy link

+1

@valyala
Copy link
Owner

valyala commented May 24, 2017

qtpl is the default extension for quicktemplate files. It may be overridden with -ext parameter. For instance, the following go:generate rule will compile only files with html extension.

//go:generate qtc -dir=path/to/directory/with/templates -ext=html

See more details in the qtc README.

@valyala valyala closed this as completed May 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants