Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschubek committed Mar 13, 2023
1 parent cecd2a6 commit 63a6062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ for more info and support visit https://github.com/adrianschubek/ufpp
```
> Show this help page by running `ufpp`.
A variable can either be a `key=value` pair or just a `key`. Multiple variables can be passed as arguments by using spaces like `foo=bar foz="baz 123" foobar`.

### Syntax

#### Blocks
Expand All @@ -102,6 +100,8 @@ A command generally follows this syntax `$[<name> [arg1] [arg2] ... [argN]]$` wh

A variable can be used inside a template block's *Value* by using its name. Variables are stored globally and changes to a variable can only affect statements declared **after** the current one. Outputting a variable can be done using `${<name>}$` (curly braces) where `<name>` is the variable's name.

Variables can be declared on CLI execution using `key=value` pairs or just a `key`. Multiple variables can be passed as arguments by using spaces like `foo=bar foz="baz 123" foobar`.

Custom JavaScript can also be outputted by using backticks. `` foo ${`2 + 2 * 5`}$. `` will output `foo 12.`.

*Example: test.txt*
Expand Down

0 comments on commit 63a6062

Please sign in to comment.