examples/demo_embed_str
raw| 1 | #!/usr/bin/env runawk |
| 2 | |
| 3 | #use "embed_str.awk" |
| 4 | |
| 5 | #.begin-str example1 |
| 6 | # Something |
| 7 | # Multilined |
| 8 | #.end-str |
| 9 | |
| 10 | #.begin-str example2 |
| 11 | # Very |
| 12 | # Long |
| 13 | # Text |
| 14 | #.end-str |
| 15 | |
| 16 | BEGIN { |
| 17 | print "EMBED_STR [\"example1\"]:`" EMBED_STR ["example1"] "`" |
| 18 | print "EMBED_STR [\"example2\"]:`" EMBED_STR ["example2"] "`" |
| 19 | |
| 20 | exit 0 |
| 21 | } |