1 2 3 4 5 |
<ui-components> <ui-component name="demo"> <css-resource>/demo/css/layout.css</css-resource> </ui-component> < /ui-components> |
1 2 3 4 5 6 7 8 9 |
<ul> <li class="first"><a class="current">home</a></li> <li><a href="about_us.html">about us</a></li> <li><a href="privacy.html">privacy</a></li> <li><a href="projects.html">projects</a></li> <li><a href="services.html">services</a></li> <li><a href="support.html">support</a></li> <li><a href="contact_us.html">contact Us</a></li> < /ul> |
1 2 3 4 5 6 7 8 9 10 11 |
#macro(menuBar) < div id="menu"> < ul> $bodyContent < /ul> < /div> #end #macro(menuItem $key $url $title) < li><a href="$url"#if($CurrentPage==$key) class="current"#end>$title</a></li> #end |
1 2 3 4 5 6 7 8 9 |
#@menuBar() #menuItem("about" "about_us.html" "about us") #menuItem("privacy" "privacy.html" "privacy") #menuItem("projects" "projects.html" "projects") #menuItem("about" "about_us.html" "about us") #menuItem("services" "services.html" "services") #menuItem("support" "support.html" "support") #menuItem("contact_us" "contact_us.html" "contact Us") #end |
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 |
<div class="box1"> <div> <h2>Customer Service</h2> <div> <img src=\'#\'" /ico-med-1.png" alt="" class="about-img" /> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin sed odio et ante adipiscing lobortis. Quisque eleifend, arcu a dictum varius, <a href="#">Read More...</a> </div> <br /> <br /> </div> <div><br /> <h2>Global Reach</h2> <br /> <div> <img src=\'#\'" /ico-med-3.png" alt="" class="about-img" /> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin sed odio et ante adipiscing lobortis. Quisque eleifend, arcu a dictum varius, <a href="#">Read More...</a></div> </div> < /div> < div class="box2"> <div> <h2>Award Winning</h2> <div> <img src=\'#\'" /ico-med-2.png" alt="" class="about-img" /> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin sed odio et ante adipiscing lobortis. Quisque eleifend, arcu a dictum varius, <a href="#">Read More...</a></div> <br /> <br /> </div> <div> <h2>Availability</h2> <div><br /> <img src=\'#\'" /ico-med-4.png" alt="" class="about-img" /> Lorem ipsum dolor sit amet, consd ectetuer adipiscing elit. Proin sed odio et ante adipiscing lobortis. Quisque eleifend, arcu a dictum varius, <a href="#">Read More...</a> </div> </div> < /div> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
#macro(box $boxClass) < div class="$boxClass"> $bodyContent < /div> #end <span></span> #macro(boxItem $title $imgUrl $moreUrl) <div> <h2>$title</h2> <div> #img("$imgUrl") $bodyContent, #moreHref("$moreUrl") </div> </div><span></span> <span></span><span></span>#end<span></span> #macro(img $url) < img src=\'#\'" /span>$url<span></span>" alt="" class="about-img" /> #end #macro(moreHref $url) < a href="$url">Read More...</a> #end |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#@box("box1") #@boxItem("Customer Service" "images/ico-med-1.png" "#") Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin sed odio et ante adipiscing lobortis. Quisque eleifend, arcu a dictum varius #end #@boxItem("Global Reach" "images/ico-med-3.png" "#") Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin sed odio et ante adipiscing lobortis. Quisque eleifend, arcu a dictum varius #end #end #@box("box2") #@boxItem("Award Winning" "images/ico-med-1.png" "#") Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin sed odio et ante adipiscing lobortis. Quisque eleifend, arcu a dictum varius #end #@boxItem("Availability" "images/ico-med-1.png" "#") Lorem ipsum dolor sit amet, consd ectetuer adipiscing elit. Proin sed odio et ante adipiscing lobortis. Quisque eleifend, arcu a dictum varius #end #end |
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 |
<div id="layout"> <div id="header"> <div id="logo"><a href="#"><img src=\'#\'" /logo_1.gif" alt="" /></a></div> <div class="member_login"> <div class="login_box"> <form action="" method="get"> <fieldset> <div class="column_1"> <label>username :</label> <label>password :</label> </div> <div class="column_2"> <input type="text" name="" value="" /> <input type="text" name="" value="" /> </div> <div class="column_3"> <input type="image" src=\'#\'" /login_btn.gif" class="login"/> </div> <div class="column_4"> <label class="password"><a href="#">Forgot <br /> password</a></label> </div> </fieldset> </form> </div> </div> </div> <div id="body_container"> $pageContent </div> <div id="footer"> <div class="footer_link"> <ul style="color:#FFf;"> Copyright (c) Sitename.com. All rights reserved. Design by Stylish From <a style="text-decoration:underline; color:#FFF;" href="http://www.cssmoban.com">cssMoban.com</a>. </ul> </div> </div> </div> < /div> < /body> < /html> |
1 2 3 4 5 |
<div id="layout"> #header() $pageContent #footer() < /div> |
1 2 3 4 5 |
#@pageLayout() #header() $pageContent #footer() #end |
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 |
#@wrap() #@header() #sitename("TINY WEB FRAMEWORK" "我们的目标是: Think big, start small.") #@topnav() #topnavItem("home" "Home" "/tinysite/home/home.page") #topnavItem("faq" "FAQ" "/tinysite/home/faq.page") #topnavItem("feature" "Feature" "/tinysite/home/feature.page") #topnavItem("sample" "Sample" "/tinysite/home/sample.page") #topnavItem("demo" "Demo" "/tinysite/home/demo.page") #topnavItem("Task" "Task" "/tinysite/home/task.page") #topnavItem("document" "Document" "/tinysite/home/document.page") #topnavItem("resource" "Resource" "/tinysite/home/resource.page") #topnavItem("about" "About" "/tinysite/home/about.page") #end #clear() #@headercolumn1() 我们要做的不只是平台,更是一件艺术品,从所有项目参与者的视觉来看,它都是简洁、高效、美观的。 #end #@headercolumn2() <div id="search_top"> <form action="/search/search.php" method="get"> <p><input type="text" name="query" id="query" class="keyword"/> </p> <p class="button"><input name="" type="image" src=\'#\'" /images/searchbutton.gif" alt="Search" /></p> <p class="hide"> <input type="hidden" name="search" value="1" /> </p> </form> </div> <div id="subscribe"><a href="#">Subscribe</a></div> #end #clear() #end #@contents() $!pageContent #end #@footer() < p>Copyright TINY open source group.</p> < p>网站解释权归 <b>TINY开源组织</b> 所有.</p> #end #end |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#@homepage() #@faq("关于我们") #@servicesItem("idea") 我们的目标:通过此开源项目的运作,对于J2EE应用框架中的各种概念与架构进行充分的验证与分析,达到概念清晰,理论体系完整,功能基本完成。 系统的编写,主要利用业余时间编写。 #end #end #@faq("主要参与者") #@servicesItem("idea") spzebra:负责架构设计,核心代码编写。 #end #end #end |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#@homepage() #@faq("演示列表") #@servicesItem("idea") HelloWorld #end #@servicesItem("design") 四则运算 #end #@servicesItem("apps") 简单数据维护 #end #@servicesItem("mobile") 站内邮件系统 #end #end #end |