Closed sc0ttj closed 4 years ago
csv
/json
/yaml
parsers can be to the .app/functions
dirSee the "Data folder" issue for useful libraries we could use.
Provides a payment button on the given page.
page data
variables:
page_price
page_data
array, containing:
{{page_data | payment_button 'paypal'}}
would produce something like:
<form action="https://paypal.com..?foo={{page_slug}}" method="post">
<input type="hidden" name="slug" value="{{page_slug}}" />
<input type="hidden" name="price" value="{{page_price | money_without_currency}}" />
<input type="submit" value="Buy now: {{page_price | money}}" />
</form>
New feature: liquid-like templating
Summary
You can now do stuff like this:
Filtering variables
or, a more advanced example:
These filters can also be applied to whole sections (if you must!):
Filtering with Iterators and Arrays
Use filters in your Markdown!
Available filters (so far)
Other things in this PR:
Fixed: cached rebuilds
Added
<html>
stuff to its own template, and rebuilds now uses a cached version if it exists.