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

resolves data from Liquid.Variable.parse/1 and creates a variable struct

Link to this function

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()
   }}

Assigns context to variable and than applies all filters

Parses the markup to a list of filters