${x}
${len(list_name)}
${pow(x,2) + pow(y,2)}
% if x == 1:
<div class="">It's One</div>
% elif x == 2:
<div class="">It's Two</div>
% else:
<div class="">Others</div>
% endif
the whitespace between % and 'if else endif' etc., can be omitted.
so %if, %else, %elif, %endif is ok.
%for a in [1, 2, 3]:
<li>${a}</li>
%endfor
Using ## to comment a line
## <div class="foo"></div>
There are two kinds:
<%
## python code here
name = 'web-mode'
%>
<%!
from datetime import datetime
%>
self enclose
<%page args="" />
<%include file="" />
<%namespace file="" />
<%inhreit file="" />
<%call expr="" />
explicit closing tag
<%def name="alert()">
## code here
</%def>
<%block name="">
## code here
</%block>
@NdYAG maybe this is not right place to ask but I can't find any solution so asking here , I am writing .mako.md file, can you please help me, here is part of my code :
problem is with github_path it takes url
"https://github.com/Eshan-Agarwal/"
with last"
due to which it return 404 error as url displayed is this in web browserhttps://github.com/Eshan-Agarwal/"
How can I get off this"
Thanks