File: products.liquid

package info (click to toggle)
ruby-liquid 5.4.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,220 kB
  • sloc: ruby: 10,561; makefile: 6
file content (49 lines) | stat: -rw-r--r-- 1,431 bytes parent folder | download | duplicates (3)
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
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Language" content="en-us" />

    <title>products</title>

    <meta name="ROBOTS" content="ALL" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="MSSmartTagsPreventParsing" content="true" />
    <meta name="Copyright" content="(c) 2005 Copyright content:  Copyright design: Tobias Luetke" />
    <!-- (c) Copyright 2005 by Tobias Luetke All Rights Reserved. -->
  </head>

  <body>
    {% assign all_products = products | concat: more_products  %}
    <h1>{{ description | split: '~' | first }}</h1>

    <h2>{{ description | split: '~' | last }}</h2>

    <h2>There are currently {{all_products | count}} products in the {{section}} catalog</h2>

    {% if cool_products %}
      Cool products :)
    {% else %}
      Uncool products :(
    {% endif %}

    <ul id="products">

      {% for product in all_products %}
        <li>
          <h2>{{product.name}}</h2>
          Only {{product.price | price }}

          {{product.description | prettyprint | paragraph }}

          {{ 'it rocks!' | paragraph }}

        </li>
      {% endfor %}

    </ul>

  </body>
</html>