![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
gulp-angular-html2js
Advanced tools
Compiles AngularJS templates to JavaScript.
npm install gulp-angular-html2js --save-dev
var gulp = require('gulp'),
html2js = require('gulp-angular-html2js');
gulp.task('default', function () {
gulp.src("test.html")
.pipe(html2js({
moduleName:function(filename,subpath){
return subpath.replace(/^src\//,'');
},
templateUrl:"templates/demo.html",
rename:function(fileName){
return fileName+'.js';
}
}))
.pipe(gulp.dest('dest'));
});
moduleName : define module's name.
string
|function
templateUrl : define template's name.
string
|function
rename : rename output file.
string
|function
alert.html:
<div class="alert alert-success" role="alert">
<button ng-show="closeable" type="button" class="close" ng-click="close({$event: $event})">
<span aria-hidden="true">×</span>
<span class="sr-only">Close</span>
</button>
<div ng-transclude></div>
</div>
gulp.task('default', function () {
gulp.src("src/**/*.html")
.pipe(html2js({
moduleName:function(filename,subpath){
return subpath.replace(/^src\//,'');
},
templateUrl: function (filename) {
return 'templates/'+filename;
},
rename:function(fileName){
return fileName+'.js';
}
}))
.pipe(gulp.dest('dest'));
});
alert.html.js:
angular.module("alert/templates/alert.html",[]).run(["$templateCache",function($templateCache){
$templateCache.put("templates/alert.html",
"<div class=\"alert alert-success\" role=\"alert\">"+
" <button ng-show=\"closeable\" type=\"button\" class=\"close\" ng-click=\"close({$event: $event})\">"+
" <span aria-hidden=\"true\">×</span>"+
" <span class=\"sr-only\">Close</span>"+
" </button>"+
" <div ng-transclude></div>"+
"</div>");
}]);
MIT
FAQs
Compiles AngularJS templates to JavaScript
The npm package gulp-angular-html2js receives a total of 2 weekly downloads. As such, gulp-angular-html2js popularity was classified as not popular.
We found that gulp-angular-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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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.