Skip to content

mahmoodbazdar/angularjs-cache-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

angularjs-cache-generator

generates Angularjs cache from html files.

example: add template address in construct function parameter

$ngCacheGen=new \Bazdar\NgCache\NgCacheGen("/templates");

class will append .js ext at the end

$ngCacheGen->setExportName("cacheFileName");

set which files must process with class by default html files will processed

$ngCacheGen->setTemplateExt("html");

prefix address before html file

ex: template file real address: /library/templates/test/action.html

current class instance dir: /library/gen.php

then prefix = /library/

$ngCacheGen->setPrefix("/library/");

you also can change default cache template example of template file: src/cacheTemplate.js

$ngCacheGen->setTemplateFile(__DIR__."/templateCache.js");

About

generate angularjs cache from html files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published