Snippets

orbitzN Snabela run

Created by orbitzN last modified
@#parties-@
@name@ has a minimum age of @min_age@ and has a $@cost | money@ cover charge.
@#?guest_list-@
  Guest list:
  @#-guest_list-@
    @name@
  @-/guest_list-@
@/guest_list-@
@#!guest_list-@
  No guests have signed up.
@/guest_list-@
@/parties-@
min_age = 18
guest_list = []

[[parties]]
name = "End of the world party"
cost = 20.0

[[parties.guest_list]]
name = "me"

[[parties.guest_list]]
name = "myself"

[[parties.guest_list]]
name = "i"

[[parties]]
name = "End of the world party party"
min_age = 21
cost = 40.0
1
2
3
4
5
#! /bin/sh

read line

printf "%0.2f" $line
1
2
3
4
5
6
7
8
> ./build/release/snabela_cli/snabela_cli.native --kv test_data/foo.toml --td /tmp --td test_data/transformers/ < test_data/foo.tmpl
End of the world party has a minimum age of 18 and has a $20.00 cover charge.
  Guest list:
    me
    myself
    i
End of the world party party has a minimum age of 21 and has a $40.00 cover charge.
  No guests have signed up.

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.