• Kirill Smelkov's avatar
    gitlab: Introduce macro library · 2e81276b
    Kirill Smelkov authored
    Introduce a library of Jinja2 macros that will be handy to use in
    templates. For now we add only 2 macros:
    
        cfg(name)   - to get instance configuration parameter `name`,   and
        cfg_bool    - to get truth value of ----//----
    
    The reason we introduce cfg() is that we will need to use a lot of
    parameters in many places and it is much more handy to write, e.g.
    
        cfg('email_enabled')
    
    compared to
    
        instance_parameter:configuration.email_enabled
    
    /cc @kazuhiko, @jerome
    2e81276b
Name
Last commit
Last update
component Loading commit data...
slapos Loading commit data...
software Loading commit data...
stack Loading commit data...
.gitignore Loading commit data...
CHANGES.txt Loading commit data...
MANIFEST.in Loading commit data...
README.software.txt Loading commit data...
README.txt Loading commit data...
schema.json Loading commit data...
setup.py Loading commit data...
sla.schema.json Loading commit data...