aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2018-03-23 03:06:35 +0000
committerYann Herklotz <ymherklotz@gmail.com>2018-03-23 03:06:35 +0000
commit566b92541201e685e02ba40dde225cf999578043 (patch)
tree1bec8687c12b9858083781b58aeff8af5539c785 /examples
parent1579d9817c8fdfd5594ef231b66461dbaf05728e (diff)
downloadFMark-566b92541201e685e02ba40dde225cf999578043.tar.gz
FMark-566b92541201e685e02ba40dde225cf999578043.zip
[html] Adding html type
Diffstat (limited to 'examples')
-rw-r--r--examples/macros.fmark14
-rw-r--r--examples/test.css3
2 files changed, 17 insertions, 0 deletions
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