Skip to content
This repository was archived by the owner on Feb 23, 2025. It is now read-only.
henix edited this page Nov 16, 2013 · 2 revisions

How could I include a literal "#{" or "}#" (start_tag / end_tag) in the template?

Well, here is a solution(replace the end tag with lua's string concat):

#{= [[<span>
#{ if user ~= nil then }]]..[[#
Hello, #{= escapeHTML(user.name) }]]..[[#!
#{ else }]]..[[#
<a href="/login">login</a>
#{ end }]]..[[#
</span>
]] }#

Clone this wiki locally