diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-03-23 02:42:07 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-03-23 02:42:07 +0000 |
commit | 1579d9817c8fdfd5594ef231b66461dbaf05728e (patch) | |
tree | 2e45730ea64717becdb89b153780d32320a3d362 | |
parent | 9ec652af449a03dad646fc82a381f61e75090ec4 (diff) | |
download | FMark-1579d9817c8fdfd5594ef231b66461dbaf05728e.tar.gz FMark-1579d9817c8fdfd5594ef231b66461dbaf05728e.zip |
[Eg] Adding cool macros
-rw-r--r-- | examples/example.fmark | 5 | ||||
-rw-r--r-- | examples/macros.fmark | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/examples/example.fmark b/examples/example.fmark index 61dfc7d..a22859e 100644 --- a/examples/example.fmark +++ b/examples/example.fmark @@ -1,12 +1,15 @@ - # FMark Example +{{ include ./macros.fmark }} + ## Table of contents %%TOC ## Macros +{{ input(This is the text to be inputted into the Textbox) }} + {% macro make_table(00;01;02;10;11;12;20;21;22) |{{00}}|{{01}}|{{02}}| diff --git a/examples/macros.fmark b/examples/macros.fmark new file mode 100644 index 0000000..3f542c0 --- /dev/null +++ b/examples/macros.fmark @@ -0,0 +1,10 @@ +{% macro input(text) + +<form action="/html/tags/html_form_tag_action.cfm" method="post"> +<textarea name="comments" id="comments" style="width:92%;height:140px;padding:2%;font-size:1.2em;border:12px outset #6DB72C;"> +{{text}} +</textarea><br> +<input type="submit" value="Submit"> +</form> + +%}
\ No newline at end of file |