summaryrefslogtreecommitdiff
path: root/server/src/template.h
diff options
context:
space:
mode:
authordeva <deva>2011-07-01 11:54:26 +0000
committerdeva <deva>2011-07-01 11:54:26 +0000
commit23f39df8b8edeacfa5821050abbdc855acb2edd6 (patch)
treee56f7826c361a85a3bac9e0b3206086c81114748 /server/src/template.h
parent2c53b5ef16626112dfc738420eec3e1963b1a343 (diff)
removed macrotool.
add lua wrapper for praxisd. new type attributes_t for sax parser and children. make macros/templates use real vars instead of var map. add data ttl on macro level. add 'important' attribute to macrotags in templates.
Diffstat (limited to 'server/src/template.h')
-rw-r--r--server/src/template.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/server/src/template.h b/server/src/template.h
index 479e6ee..a069cff 100644
--- a/server/src/template.h
+++ b/server/src/template.h
@@ -68,15 +68,36 @@ public:
std::vector< Script > scripts;
std::vector< Script > resume_scripts;
Widget widgets;
- attr_t attributes;
Resume resume;
+
bool isHeader;
+ bool isStatic;
+ bool isCompact;
+ bool isImportant;
+
+ std::string name;
+ std::string version;
+ std::string caption;
+ std::string requires;
+ std::string ttl;
};
class Template {
public:
std::vector< Macro > macros;
- attr_t attributes;
+
+ std::string name;
+ std::string title;
+ std::string version;
+};
+
+class Course {
+public:
+ std::vector< Template > templates;
+
+ std::string name;
+ std::string title;
+ std::string version;
};
#endif/*__PRACRO_TEMPLATE_H__*/