[% # splash/text: present text according to style
#
# ARGS: content, style, link
# STYLE: col, font, size, bold
#
SET
default = splash.style.default;
;
DEFAULT
style = default
col = style.col.text or default.col.text
font = style.font.face or default.font.face
size = style.font.item('size') or default.font.item('size')
;
SET
bold = bold.defined ? bold : style.font.bold
content = bold ? "$content" : content
rgbcol = col ? splash.rgb.$col : ''
;
-%]
[% IF link %][% END -%]
[%- IF size or font or col -%]
[%- content -%]
[%- ELSE %]
[%- content %]
[%- END %]
[%- "" IF link %]