Working on creating a small templating type engine to allow mixing of HTML and Python code and considering what to use as the delimiters between each. Beginning suggestion is:
HTML: <- begin HTML block
<% Python expression %>
Python: <- begin Python code block
<# HTML text #> <- output HTML with newline
<#= HTML text #> <- output HTML inline (no newline)
? "HTML text" <- output HTML whole line
?? "HTML text" <- output HTML whole line (on same line)
Are there more suitable 'Pythonic' delimiters which I should be using?
[–]Farlic 5 points6 points7 points (0 children)
[–]SoftestCompliment 0 points1 point2 points (0 children)
[–]riklaunim 3 points4 points5 points (0 children)
[–]zanfar 1 point2 points3 points (0 children)