-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.ctml
103 lines (103 loc) · 3.52 KB
/
test.ctml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<title>CLIP Test Page</title>
<c:css>
this, tag{
could: do some "minification";
i: suppose;
}
but, again{
since: "it is a user-defined tag";
there: is no knowing;
what: exactly;
it: will do;
}
</c:css>
<c:meta-tags />
</head>
<body>
<article id="thread-op" class="post">
<a name="0" />
<c:using field=":thread">
<header>
<h1>Thread #<c:splice lquery="(text id)">ID</c:splice></h1>
<div class="author">
<c:profile user="author" />
</div>
<ul iterate="tags">
<li count="">
<c:if>
<c:test>
(series-p *)
</c:test>
<c:then>
<a class="tag series" lquery="(text *)">TAG</a>
</c:then>
<c:else>
<a class="tag" lquery="(text *)">TAG</a>
</c:else>
</c:if>
</li>
this text will be discarded
</ul>
</header>
<section class="content">
<c:noop as="blockquote">
This is some user generated content or something that contains <c:lip>tags</c:lip> and other things that would otherwise be parsed.
Thanks to the <b lquery="(text foo)">noop</b> tag though, no transformations will take place.
</c:noop>
</section>
<footer>
<nav id="postedit">
<c:when test="(editable-p *)">
<li><a href="#" lquery="(attr :href (format NIL "/edit/~a" id))">Edit</a></li>
</c:when>
<li><a href="#0">Permalink</a></li>
</nav>
</footer>
</c:using>
</article>
<section id="replies">
<c:let posts="(thread-posts :thread)" thread=":thread">
<c:iterate over="posts" as="ul">
<li eval="(increase-post-count)">
<article class="post">
<a name="n" lquery="(attr :name (post-count))" />
<header>
<c:unless test="(anonymous-p author)">
<div class="author">
<c:profile user="author" />
</div>
</c:unless>
</header>
<section class="content">
<c:noop as="blockquote">
This is some user generated content or something that contains <c:lip>tags</c:lip> and other things that would otherwise be parsed.
Thanks to the <b lquery="(text foo)">noop</b> tag though, no transformations will take place.
</c:noop>
</section>
<footer>
<nav id="postedit">
<c:when test="(editable-p *)">
<li><a href="#" lquery="(attr :href (format NIL "/edit/~a" id))">Edit</a></li>
</c:when>
<li><a href="#" lquery="(attr :href (format NIL "#~a" (post-count)))">Permalink</a></li>
</nav>
</footer>
</article>
</li>
</c:iterate>
</c:let>
</section>
<c:expand as="footer" lquery="(attr :lquery (compute-footer-actions :thread))">
FOOTER
</c:expand>
<c:js>
$(function(){
console.log("I guess this tag could do some special JS analysis and insert missing libs or something, idk.");
});
</c:js>
</body>
</html>