projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
96c32fe
)
JSDOC/Template.js
author
Alan Knowles
<alan@akbkhome.com>
Mon, 28 Jun 2010 09:52:49 +0000
(17:52 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 28 Jun 2010 09:52:49 +0000
(17:52 +0800)
JSDOC/Template.js
patch
|
blob
|
history
diff --git
a/JSDOC/Template.js
b/JSDOC/Template.js
index
334fc9c
..
f2f3625
100644
(file)
--- a/
JSDOC/Template.js
+++ b/
JSDOC/Template.js
@@
-7,23
+7,32
@@
XObject = imports.XObject.XObject;
console = imports.console.console;
console = imports.console.console;
-Link = imports['Template/Link.js'].Link;
-
-
+/**
+ * Template
+ *
+ *
+ */
+
+
+Template = XObject.define(
+
-Template = function(templateFile) {
- if (templateFile) {
+ function(cfg) {
+ XObject.extend(this, cfg)
+ //this.templateFile = templateFile;
- this.template = Gio.simple_read(templateFile);
+ if (templateFile) {
+
+ this.template = Gio.simple_read(templateFile);
+
+ }
+ this.Link = this.Link || imports.TemplateLink;
+ this.templateName = GLib.path_get_basename(templateFile);
+ this.code = "";
+ this.parse();
}
}
-
- this.templateFile = templateFile;
- this.templateName = GLib.path_get_basename(templateFile);
- this.code = "";
- this.parse();
-}