aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2018-03-23 03:54:49 +0000
committerYann Herklotz <ymherklotz@gmail.com>2018-03-23 03:54:49 +0000
commite415a39dc0e77743db382a90bfde73d6e6b400dd (patch)
treebc673845530fbc96f094bad88e65752c1812298f
parentee3202f55a1da87b2f10c9bc4e5bbcd95176e19d (diff)
downloadFMark-e415a39dc0e77743db382a90bfde73d6e6b400dd.tar.gz
FMark-e415a39dc0e77743db382a90bfde73d6e6b400dd.zip
[examples] Adding more examples
-rw-r--r--examples/macros.fmark7
-rw-r--r--examples/test.css2
2 files changed, 6 insertions, 3 deletions
diff --git a/examples/macros.fmark b/examples/macros.fmark
index 1fa4351..fe69b1b 100644
--- a/examples/macros.fmark
+++ b/examples/macros.fmark
@@ -1,4 +1,4 @@
-<script type="text/javascript">
+<div><script type="text/javascript">
function loadCSS(filename){
var file = document.createElement("link");
@@ -8,10 +8,13 @@
document.head.appendChild(file);
}
- loadCSS("./test.css");
+ loadCSS("file:///home/yannherklotz/Github/FMark/examples/test.css");
</script>
+<p>sdassdd</p>
+</div>
+
{% macro input(text)
<form action="/html/tags/html_form_tag_action.cfm" method="post">
diff --git a/examples/test.css b/examples/test.css
index aa84b8c..9cc4e60 100644
--- a/examples/test.css
+++ b/examples/test.css
@@ -1,3 +1,3 @@
-p {
+body {
color: #ff0000;
} \ No newline at end of file