Задать вопрос

Тел: +7 965 3737 888

436

Просмотров

1

Ответов

PyCallTag - Directly call python function or attribute of a module

<p>How to use it 
</p>
{% pycall os.path.abspath(".") %}
{% pycall os.path.abspath(".") as path %}
This is the {{ path }}.
<p>Syntax 
</p>
{% pycall module.function(...) [as variable_name] %}
<p>If there is no as variable_name, the result will be output directly. 
</p>

Вопрос полезен? Да0/Нет0
file_4647.py(1.7Кб)
None

Ответы (1):

Ответcricogik:20.12.2010
Ответ полезен? Да0/Нет0

Good programmers don't use eval ;-) Rest of them had to heavy childhood.