Price

Displays a price with currency, discount, frequency…

Example

Usage

{{ $args := (dict
        "price" 100
        "discount" "10%"
        "frenquency" "/month"
        ) }}
{{ partial "commons/price" $args }}

HTML rendered

<p class="princing">90€ <del>100€</del> <span>-10%</span> <i>/month</i></p>

Datas

price: "" // Float price, required
discount: "" // Percent or value to discount
frequency: "" // If you have subscription and you want 
itemprop: false // boolean to add itemprop="price" content="{price}"