PageRenderTime 58ms CodeModel.GetById 50ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/sitebricks-acceptance-tests/src/main/resources/Embed.html

http://github.com/dhanji/sitebricks
HTML | 48 lines | 33 code | 7 blank | 8 comment | 0 complexity | 876273cc2da6fc095b027729dedab22f MD5 | raw file
 1<html>
 2<!--
 3
 4Design by Free CSS Templates
 5http://www.freecsstemplates.org
 6Released for free under a Creative Commons Attribution 2.5 License
 7
 8-->
 9<head>
10    <!-- embedded @Require headers go here -->
11</head>
12
13<body>
14
15    The following is a custom widget created from the <a href="hello">HelloWorld</a> example.
16    Notice that the stylesheet is available in the enclosing page via use of the @Require widget
17    (this page is not styled by default, whereas HelloWorld is).
18    <br/><br/>
19
20    We can even pass arguments to the embedded page (let's use the list "${arg}" instead of its
21    <a href="/hello">default message</a>).
22
23    <br/><br/><br/><br/>
24
25    @Repeat(var="item", items=arg)
26    <div>
27        @Hello(message=item)
28        <span>
29            This text is replaced by the embed.
30        </span>
31    </div>
32    <br/><br/><br/><br/>
33    <br/><br/><br/><br/>
34
35    <p>
36    <h1>Let's try that again!!</h1>
37    </p>
38    <br/><br/><br/><br/>
39
40    @Repeat(var="item", items=arg)
41    <div>
42        @Hello(message=item)
43        <span>
44            This text is replaced by the embed.
45        </span>
46    </div>
47</body>
48</html>