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

Custom template names #32

Closed
mort3za opened this issue Jul 11, 2014 · 1 comment
Closed

Custom template names #32

mort3za opened this issue Jul 11, 2014 · 1 comment

Comments

@mort3za
Copy link

mort3za commented Jul 11, 2014

I want to (had to) set name of templates like this: "widget/template1.html"
In your plugin names are auto generated by filename.
Can you add a feature to set template names based on id of script tag?
for example template will be this:

<script type="text/ng-template" id="widget/template1.html">
<div>template content</div>
</script>

and cache name will be this: widget/template1.html

@mort3za mort3za changed the title Custom template filenames Custom template names Jul 11, 2014
@miickel
Copy link
Owner

miickel commented Jul 11, 2014

This plugin is meant not to require any script-tag, so you'll always be able to open and view the HTML-file. Setting each name manually defeats the purpose of using this plugin in the first place (it's supposed to be a no-hassle, automatic process).

A function can be provided as options.base to do some hacking on the names, but that's as far as this plugin goes.

It seems like you have a very specific use-case, and I doubt anyone else would need this (>5k downloads / month since Jan, and you're the first one asking for this). So I suggest you fork the repo and implement it yourself.

@miickel miickel closed this as completed Jul 11, 2014
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