Liquid v0.9.1 Liquid.Variable View Source
Module to create and lookup for Variables
Link to this section Summary
Functions
resolves data from Liquid.Variable.parse/1 and creates a variable struct
Assigns context to variable and than applies all filters
Parses the markup to a list of filters
Link to this section Functions
Link to this function
create(markup) View Source
resolves data from Liquid.Variable.parse/1 and creates a variable struct
Link to this function
lookup(v, context)
View Source
lookup(v, context)
View Source
lookup(
%Liquid.Variable{
filters: term(),
literal: term(),
name: term(),
parts: term()
},
%Liquid.Context{
assigns: term(),
blocks: term(),
break: term(),
continue: term(),
extended: term(),
extra_tags: term(),
global_filter: term(),
offsets: term(),
presets: term(),
registers: term(),
template: term()
}
) ::
{String.t(),
%Liquid.Context{
assigns: term(),
blocks: term(),
break: term(),
continue: term(),
extended: term(),
extra_tags: term(),
global_filter: term(),
offsets: term(),
presets: term(),
registers: term(),
template: term()
}}
lookup(
%Liquid.Variable{
filters: term(),
literal: term(),
name: term(),
parts: term()
},
%Liquid.Context{
assigns: term(),
blocks: term(),
break: term(),
continue: term(),
extended: term(),
extra_tags: term(),
global_filter: term(),
offsets: term(),
presets: term(),
registers: term(),
template: term()
}
) ::
{String.t(),
%Liquid.Context{
assigns: term(),
blocks: term(),
break: term(),
continue: term(),
extended: term(),
extra_tags: term(),
global_filter: term(),
offsets: term(),
presets: term(),
registers: term(),
template: term()
}}
Assigns context to variable and than applies all filters
Link to this function
parse(markup) View Source
Parses the markup to a list of filters