![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
broccoli-html2js
Advanced tools
Converts AngularJS templates to JavaScript
nmp install broccoli-html2js
Type: Array
Default: []
Source files (supports html
, jade
)
Type: String
Default: ''
Output file (supports js
, coffee
)
Type: Function
Default: undefined
Function that will apply for each filepath
replace: function (filepath) {
return filepath.replace(/\.jade/g, '.html');
}
Type: Function
Default: undefined
Function that will apply for each file
replaceContent: function (content) {
return content.replace(/div/g, 'span');
}
Type: String
Default: ''
Parent module name
Type: Boolean
Default: false
Wraps all templates in a single module.
Type: String
Default: undefined
String that will set in the top of output file.
Type: String
Default: undefined
String that will set in the end of output file.
Type: Boolean
Default: false
Will set 'use strict'
for each module.
Type: Object
Default: {}
See more options on https://github.com/kangax/html-minifier
templates = html2js(tree, {
inputFiles: ['*.html', '*.jade'],
outputFile: '/templates.js' // or templates.coffee
});
0.0.5 - Added options fileHeaderString
, fileFooterString
, useStrict
, replaceContent
0.0.4 - Updated Readme
0.0.3 - Add support for CoffeeScript, Jade, option singleModule
(for placing all templates in a single module).
0.0.2 - Small changes
0.0.1 - Init project
FAQs
Converts AngularJS templates to JavaScript
We found that broccoli-html2js 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.