Categories:
Author:
Current version:
0.10
About It:
Get it:
Rate it:
Flag it:
If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!
smd_wrap
Wrap text with HTML, class, prefix, suffix, and apply tranforms to it in the process. Transforms can be chained together, and include:
- trim
- linkify
- format as date
- escape
- sanitize
- split / combine
- process with Textile
- process with Forms
- …
If the item you are intending to wrap is empty / non-existent then no wrap is applied and nothing is displayed. This makes it an ideal candidate for placing around other tags and saves having to do the “assign content to <txp:variable>
, check if variable exists” dance.
<txp:else />
is supported so you may take action if the contained content is empty.
Keywords/tags:
apply,
class,
combine,
content,
convert,
escape,
find,
format,
html,
label,
linkify,
replace,
sanitize,
split,
textile,
transform,
wrap,
wraptag
Initially released:
22 Oct 2011
Posted here:
22 Nov 2011