Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 162 lines (124 sloc) 5.13 kb
109856b @tobi setup editor for hacking
authored
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3 <head>
4 <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
5 <meta http-equiv="imagetoolbar" content="no" />
6 <meta name="MSSmartTagsPreventParsing" content="true" />
7
8 <title>Liquid Test</title>
9
10 <link href="/stylesheets/application.css" media="screen" rel="stylesheet" type="text/css" />
11 </head>
12
13 <body>
14
15 <div id="header">
16 <h1><a href="/">Liquid Editor</a></h1>
17
18 </div>
19
20 <div id="container" class="clearfix">
21
22
92095f6 @tobi created standalone parser
authored
23 <ul id="tabs">
24 <li><a href="/" id="current">Mixed Mode</a></li>
25 <li><a href="/standalone.html">Standalone Liquid</a></li>
26 </ul>
109856b @tobi setup editor for hacking
authored
27
28
29 <!-- begin div.main-->
30 <div id="main">
31
32 <div>
33 <textarea id="code" cols="140" rows="40">
34 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
35
964465e Fixed error that would mistake {% if a < b %} as a tag opening which w...
Tobias Lütke authored
36
109856b @tobi setup editor for hacking
authored
37 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
38 <head>
39 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
40 <title>{{shop.name}} — {{page_title}}</title>
41
42 {{ 'layout.css' | asset_url | stylesheet_tag }}
43 {{ 'lightbox/v2/lightbox.css' | global_asset_url | stylesheet_tag }}
644154c @tobi .
authored
44 {{ 'lightbox/v2/lightbox.js' | global_asset_url | script_tag }}
109856b @tobi setup editor for hacking
authored
45
46 {{content_for_header }}
47 </head>
48 <body>
e17f488 Merge branch 'master' of git://github.com/tobi/liquid-editor
Tobias Lütke authored
49
50 {% if cart.items < 5 %}
51 <p> Wow you got lots of stuff! </p>
52 {% endif %}
964465e Fixed error that would mistake {% if a < b %} as a tag opening which w...
Tobias Lütke authored
53
54 {% if cart.items > 3 %}
55 <p> You are not buying enough! </p>
56 {% endif %}
57
58 {% if cart.items['first'][name] == 'Hello world' %}
59 <p> Hello world! </p>
60 {% endif %}
61
109856b @tobi setup editor for hacking
authored
62 <div id="demostore">
63 This is a {{ 'Shopify' | link_to: 'http://www.shopify.com' }} demo store. We do not have the products advertised here and we don't really charge money upon order completion.
64 </div><div id="main">
65
66 <div id="container">
67 <div id="header">
68 <ul id="sitelinks">
69 {% for link in linklists.footer.links %}
70 <li>{{ link.title | link_to: link.url }}</li>
71 {% endfor %}
72 <li class="cartlink">
73 {% if cart['item_count'] == 0 %}
74 <strong>Shopping Cart</strong> <img src="{{ 'cart.gif' | asset_url }}" alt="Shopping Cart" height="26" width="26" />
75 {% else %}
76 <strong><a href="/cart">Shopping Cart</a></strong> ({{cart.item_count}} {{ cart.item_count | pluralize: 'item', 'items' }})<img src="{{ 'cart.gif' | asset_url }}" alt="Shopping Cart" height="26" width="26" />
77 {% endif %}
78 </li>
79 </ul>
80 </div>
81
82 <div id="side" class="left">
83 <div class="menubar">
84 <ul id="nav">
85 {% for link in linklists.main-menu.links %}
86 <li class="{%if forloop.first%}home first{%endif%}{%if forloop.last%}last{%endif%}"><strong>{{ link.title | link_to: link.url }}</strong></li>
87 {% endfor %}
88 </ul>
89 </div>
90
91
92 <div id="searchbox">
93 <form method="get" action="/search">
94 <input type="text" size="16" name="q" onfocus="if(this.value='Search...'){this.value = ''}" value="Search..." />
95 </form>
96 </div>
97
98
99 <div id="featurebox">
100
101 <ul id="feature">
102 <li class="first"><strong>Blowout Deals</strong></li>
103 {% for link in linklists.deals.links %}
104 <li class="">{{ link.title | link_to: link.url }}</li>
105 {% endfor %}
106 </ul>
107 </div>
108
109 </div>
110
111 <div id="content" class="content">
112 {{content_for_layout}}
113 </div>
114
115 <div id="footer">
116
117 <p><span>All rights reserved.</span><br /><br />
118 <span> Copyright {{ 'now' | date: "2005-%Y"}} Snowdevil.</span> <span>All sales are final. All prices in Canadian dollars.</span><br/>
119 <span class="partners">Please visit our partner pages: <a target="_blank" href="http://www.hoppels.com">Windsurf </a > <a target="_blank" href="http://www.brett-ist-brett.de">Funsport Photo Community</a></span></p>
120 </div>
121
122
123 </div>
124 </div>
125 </body>
126 </html>
127 </textarea>
128
129 <script src="codemirror/js/codemirror.js" type="text/javascript"></script>
130
131 <style type="text/css">
132 .CodeMirror-line-numbers {
133 width: 2.2em;
134 color: #aaa;
135 background-color: #eee;
136 text-align: right;
137 padding-right: .3em;
138 font-size: 10pt;
139 font-family: monospace;
140 padding-top: .4em;
141 }
142 </style>
143
144 <script type="text/javascript">
1b63550 @tobi went back and continued working on the mixed mode parser because the sta...
authored
145 CodeMirror.fromTextArea('code', {
109856b @tobi setup editor for hacking
authored
146 height: "600px",
1b63550 @tobi went back and continued working on the mixed mode parser because the sta...
authored
147 parserfile: "../../javascripts/parseliquid.js" ,
148 stylesheet: ["/codemirror/css/xmlcolors.css", "/stylesheets/liquidcolors.css"],
109856b @tobi setup editor for hacking
authored
149 path: "codemirror/js/",
c8a8050 @tobi mixed mode naive liquid parser
authored
150 textWrapping: false,
109856b @tobi setup editor for hacking
authored
151 lineNumbers: true
152 });
153 </script>
154
155 </div>
156 </div>
157 <!-- end div.main -->
158
159 </div>
160
161 </body>
162 </html>
Something went wrong with that request. Please try again.