neutralts::bif

Module parse_bif_lang

Source
Expand description

§{:lang; … :}

Returns the current language defined in the schema. The value is taken from inherit.locale.current.

Example:

Schema

{
    "inherit": {
        "locale": {
            "current": "en"
        }
    }
}

Template

<html lang="{:lang;:}">
...
</html>

Result

<html lang="en">
...
</html>

§No modifiers

§No flags