projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c75d7c
)
JsTemplate.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 17 Nov 2011 09:22:07 +0000
(17:22 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 17 Nov 2011 09:22:07 +0000
(17:22 +0800)
JsTemplate.php
patch
|
blob
|
history
diff --git
a/JsTemplate.php
b/JsTemplate.php
index
9885da9
..
c52bde2
100644
(file)
--- a/
JsTemplate.php
+++ b/
JsTemplate.php
@@
-50,14
+50,20
@@
class Pman_Core_JsTemplate extends Pman {
$ar = explode(PATH_SEPARATOR, $ff['templateDir']);
+
+
foreach($ar as $mod) {
$dir = dirname($mod) . '/jtemplates';
if (!file_exists($dir)) {
echo '// missing directory '. htmlspecialchars($dir) ."\n";
}
// got a directory..
+ $mn = basename(dirname($mod));
+
+
foreach(glob("$dir/*.html") as $fn) {
- var_Dump($fn);
+ $name = 'Pman.' . $mn .'.' . preg_replace('/\.html$/i', '', $fn);
+ $this->compile($fn, $name);
}