<% Site.title %> |
macro rendering title |
Sourcecode in Site/macros.js:
1: function title_macro(param) { 2: if (param.as == "editor") 3: Html.input(this.createInputParam("title", param)); 4: else { 5: if (param && param.linkto) { 6: if (param.linkto == "main") 7: param.linkto = ""; 8: Html.openLink({href: this.href(param.linkto)}); 9: if (this.title && this.title.trim()) 10: res.write(stripTags(this.title)); 11: else 12: res.write("<em>[untitled]</em>"); 13: Html.closeLink(); 14: } else 15: res.write(this.title); 16: } 17: return; 18: } |