More about
If you want to set a variable named
If you want to include a partial template (child template) into your parent template use
If one of your templates inherits from a main layout use
#python #jinja2 #extends #include #set #variable #set_variable #layout
jinja2
:If you want to set a variable named
button
:{% set button = 'Login' %}
If you want to include a partial template (child template) into your parent template use
include
:{% include 'fa.button.tpl' %}
BE CAREFUL
that we have used {%
NOT {{
for the code block.If one of your templates inherits from a main layout use
extends
directive:{% extends "layout.tpl" %}
#python #jinja2 #extends #include #set #variable #set_variable #layout
https://stackoverflow.com/questions/13032409/ssh-remote-variable-assignment
#linux #sysadmin #ssh #local_variable #variable_expansion #bashrc #export
#linux #sysadmin #ssh #local_variable #variable_expansion #bashrc #export
Stack Overflow
ssh remote variable assignment?
The following does not work for me:
ssh user@remote.server "k=5; echo $k;"
it just returns an empty line.
How can I assign a variable on a remote session (ssh)?
Note: My question is not about ...
ssh user@remote.server "k=5; echo $k;"
it just returns an empty line.
How can I assign a variable on a remote session (ssh)?
Note: My question is not about ...