diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-03-23 03:06:35 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-03-23 03:06:35 +0000 |
commit | 566b92541201e685e02ba40dde225cf999578043 (patch) | |
tree | 1bec8687c12b9858083781b58aeff8af5539c785 | |
parent | 1579d9817c8fdfd5594ef231b66461dbaf05728e (diff) | |
download | FMark-566b92541201e685e02ba40dde225cf999578043.tar.gz FMark-566b92541201e685e02ba40dde225cf999578043.zip |
[html] Adding html type
-rw-r--r-- | FMark/src/Common/Types.fs | 3 | ||||
-rw-r--r-- | examples/macros.fmark | 14 | ||||
-rw-r--r-- | examples/test.css | 3 |
3 files changed, 19 insertions, 1 deletions
diff --git a/FMark/src/Common/Types.fs b/FMark/src/Common/Types.fs index a87aa19..94f4027 100644 --- a/FMark/src/Common/Types.fs +++ b/FMark/src/Common/Types.fs @@ -10,6 +10,7 @@ type Language = type Token = | CODEBLOCK of string * Language | LITERAL of string + | HTMLLIT of string | WHITESPACE of size: int | NUMBER of string | HASH | PIPE | EQUAL | MINUS | PLUS | ASTERISK | DOT | COMMA @@ -84,4 +85,4 @@ type Cell with member c.GetParams = match c with | Contents(toks,head,align) -> toks,head,align -type OutFormat = HTML | Markdown
\ No newline at end of file +type OutFormat = HTML | Markdown diff --git a/examples/macros.fmark b/examples/macros.fmark index 3f542c0..1fa4351 100644 --- a/examples/macros.fmark +++ b/examples/macros.fmark @@ -1,3 +1,17 @@ +<script type="text/javascript"> + + function loadCSS(filename){ + var file = document.createElement("link"); + file.setAttribute("rel", "stylesheet"); + file.setAttribute("type", "text/css"); + file.setAttribute("href", filename); + document.head.appendChild(file); + + } + loadCSS("./test.css"); + +</script> + {% macro input(text) <form action="/html/tags/html_form_tag_action.cfm" method="post"> diff --git a/examples/test.css b/examples/test.css new file mode 100644 index 0000000..aa84b8c --- /dev/null +++ b/examples/test.css @@ -0,0 +1,3 @@ +p { + color: #ff0000; +}
\ No newline at end of file |