142143144145146147148149150151152153154
* * @param intitle A String with the title. */ public TemplatePageAttributes setTitle(String intitle) { Title title = data.getPage().getTitle(); if (cachedTitle != null) cachedTitle += intitle; else cachedTitle = intitle; title.addElement(intitle); return this; }
137138139140141142143144145146147148149150151152153
* * @param intitle A String with the title. */ public TemplatePageAttributes setTitle(String intitle) { Title title = data.getPage().getTitle(); if (cachedTitle != null) { cachedTitle += intitle; } else { cachedTitle = intitle; } title.addElement(intitle); return this; }
135136137138139140141142143144145146147148149150151
99100101102103104105106107
* @exception TemplateModelException. */ public TemplateModel exec(List args) throws TemplateModelException { Title title = data.getPage().getTitle(); title.addElement((String)args.get(0)); return new SimpleScalar(""); }