
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
grunt-yet-another-angular-templates
Advanced tools
Yet Another Angular Templates grunt plugin.
Turn your single page Angular templates HTML file:
<script type="text/ng-template" id="index">
<div id="wrap"></div>
</script>
to a JavaScript file:
;YAAT.run(["$templateCache",function(a){a.put("index","<div id=\"wrap\"></div>");}]);
If your HTML file does not contain any <script type="text/ng-template"></script>
tag, all content in it will be added to template cache while the cache key name
is the file path.
This plugin requires Grunt ~0.4.0
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-yet-another-angular-templates --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-yet-another-angular-templates');
Type: String
Force use this module name. Default is the target name.
Type: Function (keyName)
A callback function to process the key name.
grunt.initConfig({
yaat: {
MyApp: {
files: {
'public/js/templates.js': 'src/index.html'
}
}
}
});
Different module name:
grunt.initConfig({
yaat: {
MyApp: {
options: {
keyNameCallback: function(name) {
return name;
},
module: 'YAAT'
},
files: {
'public/js/templates.js': 'src/index.html'
}
}
}
});
FAQs
Yet Another Angular Templates grunt plugin.
The npm package grunt-yet-another-angular-templates receives a total of 19 weekly downloads. As such, grunt-yet-another-angular-templates popularity was classified as not popular.
We found that grunt-yet-another-angular-templates demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.