<%doc> Mako defs which generate formatted output or HTML components. This can be used as a namespace in other templates. <%! from uuid import uuid4 %> <%def name="fancy_date(date_value)"> <%doc> Show the date in plain language as relative to now. Eg "1 year ago". This requires the moment.js library. <% id_ = uuid4() %>