Skip to content

Configuration

Q edited this page Aug 17, 2020 · 12 revisions

Willow was designed to meet several specific developmental needs - the key aims are:

  • Simplify process for UI developers who are not comfortable moving between PHP and html, by shifting all logic away from templates
  • Provide global and granular control over display and format of data using template and file-based configuration options

Template Configuration

The simplest way to pass configuration options to willows is via template arguments, which are passed inside the argument tag, as shown in the following simple example:

Pass html markup with variable to willow

{~ ui~example {+ "<div class='row'>{{ variable }}</div>" +} ~}

File-Based Configuration

@todo

Clone this wiki locally