commit b1dce9e2afe98ed200abbca1ba0dd94a7f11753d parent ddd812e2cd969630a91df67dd05344c0e910d06a Author: Jan Pobrislo <ccx@webprojekty.cz> Date: Mon, 30 Sep 2013 18:31:33 +0200 add stuff to README Diffstat:
| M | README | | | 34 | ++++++++++++++++++++++++++++++++++ |
1 file changed, 34 insertions(+), 0 deletions(-)
diff --git a/README b/README @@ -1,3 +1,37 @@ +Awk to Awk Templates; allows you to insert awk control code into plain text and +generate awk script to print out the text. This project started as simple +cheetah-like command and expression inclusion in text file and I'm working my +way to more featured and extensible approach inspired by jinja2 so the amount +of raw code that needs to be inserted is kept at minimum. + +Currently implemented syntax: + +<text> + any text not matching syntax below is printed out (a print statement will + be generated in the resulting script) + +|<code> + lines starting with | are considered awk code and are expressed verbatim in + resulting script + +||<text> + escape for above syntax, prints text out with one bar prepended + +@<macro> + special command to affect how the code is generated. user-defined macros + should be possible + +... {% <code> %} ... + similar to |<code> but works as a block, doesn't have to happen at column 0 + +...{{ <expression> }}... + inserts awk expression into the print command. Eg. a variable or result of + computation + +... TBD + +-- old readme -- + Awk to Awk Templates; compiles interleaved awk and text into pure posix awk code.