-
Notifications
You must be signed in to change notification settings - Fork 0
rife.render.Normalize
Erik C. Thauvin edited this page Mar 28, 2023
·
4 revisions
Normalizes a template value for inclusion in a URL path.
<!--v render:rife.render.Normalize:valueId/-->
{{v render:rife.render.Normalize:valueId/}}
Template
<a href="https://example.com/news/20230106/{{v render:rife.render.Normalize:title/}}"><!--v title/--></a>
Code
template.setValue("title", "News for January 6, 2023 (Paris)");
Output
<a href="https://example.com/news/20230106/news-for-january-6-2023-paris">News for January 6, 2023 (Paris)</a>