* check for param.as == "url" and/or param.as == "link" wherevery it (hopefully) makes sense
* cleaned up a little bit (code, comments)
This commit is contained in:
parent
c42c959be7
commit
94cb4c0a22
7 changed files with 53 additions and 19 deletions
|
@ -43,6 +43,8 @@ function creator_macro(param) {
|
|||
return;
|
||||
if (param.as == "link" && this.creator.url)
|
||||
Html.link({href: this.creator.url}, this.creator.name);
|
||||
else if (param.as == "url")
|
||||
res.write(this.creator.url);
|
||||
else
|
||||
res.write(this.creator.name);
|
||||
return;
|
||||
|
@ -56,6 +58,8 @@ function modifier_macro(param) {
|
|||
return;
|
||||
if (param.as == "link" && this.modifier.url)
|
||||
Html.link({href: this.modifier.url}, this.modifier.name);
|
||||
else if (param.as == "url")
|
||||
res.write(this.modifier.url);
|
||||
else
|
||||
res.write(this.modifier.name);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue