File: 1092.ee

package info (click to toggle)
web-mode 17.3.20-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,164 kB
  • sloc: lisp: 13,359; javascript: 506; jsp: 113; sh: 10; php: 9; makefile: 8; xml: 2
file content (34 lines) | stat: -rw-r--r-- 661 bytes parent folder | download | duplicates (2)
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
{!-- This is a comment. --}
{layout="site/_html-layout" title="News"}


{!-- Note the nested braces here. --}
<div>{entry_date {my_date_formatting}}</div>


{!-- Iterate over a list of entries and do some tests. --}
{exp:channel:entries channel="news"}
<h2>{title}</h2>

{if total_results == 1}
  {body}
  {layout:set name="title"}News | {title}{/layout:set}
{if:ifelse x == 100}
  <div>something else</div>
{if:else}
  {summary}
{/if}

{/exp:channel:entries}


{!-- An expression that has its attributes wrapped. --}
<ul>
  {exp:global:something
    attr="something"
    this="that"
    another="thing"
  }
  <li>{a_value}</li>
  {/exp:global:something}
</ul>