
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
grunt-angular-template-stitch
Advanced tools
Combine AngularJS templates into a single HTML file.
Stitch AngularJS templates into a single HTML file, delimiting them by a comment. Useful for proxy services that need HTML files.
grunt.loadNpmTasks('grunt-angular-template-stitch');
angularTemplateStitch: {
dist: {
files: [{
expand : true
cwd: 'app'
src: 'views'
dest: 'dist/stitched'
}]
}
}
Will generate a file dist/stitched/views.html
that contains all html templates in app/views
.
angularTemplateStitch: {
dist: {
files: [{
expand : true
cwd: 'app/views'
src: '*'
filter: 'isDirectory'
dest: 'dist/stitched'
}]
}
}
Will generate a file (e.g. dist/stitched/views/group1.html
) of all html templates for each folder within app/views
(e.g. app/views/group1/
)
Process function that allows you to change the if name for each of the templates.
angularTemplateStitch: {
dist: {
...
options: {
processIdentifier: function (id) {
// just use the files name without extension
return id.split('/').pop().replace('.html', '');
}
}
}
}
FAQs
Combine AngularJS templates into a single HTML file.
The npm package grunt-angular-template-stitch receives a total of 0 weekly downloads. As such, grunt-angular-template-stitch popularity was classified as not popular.
We found that grunt-angular-template-stitch 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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.