(** This module keep a track of the different way to start, escape and end a string in the lexer. When a new string should be started ? Which sequence identify the end of the string How to handle the escaped characters inside this string … Depending on how the string was started (a single quote or double quote), we have differents caracters for every of thoses actions. The defaultWraper is used in any case, and other wrapper are stacked above when needed. *) val defaultWraper : Lexbuf.stringWraper (** The default string lexer. Used when we start the lexing. *) val quotedStringWraper : Lexbuf.stringWraper val dQuotedStringWraper : Lexbuf.stringWraper val readLongStringWraper : Lexbuf.stringWraper exception Out_of_context (** This exception should not be raised in a normal situation. *) ish2' selected='selected'>sailfish2 Articles du blogSébastien Dailly
summaryrefslogtreecommitdiff
path: root/theme/templates/menu.html
blob: bab98fa3890e84d9d74c98dca51605a926628bb8 (plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{% macro submenu(elements, link, name) -%}
  {% if elements %}
  <li class='has-sub'><span><a href="{{ SITEURL }}/{{link}}.html">{{name}}</a></span>
  <ul> 
    {% for tag, articles in elements %}
    <li><a href="{{SITEURL}}/{{tag.url}}"><span>{{ tag }}</span></a></li>
    {% endfor %} 
  </ul>
  </li>
  {% endif %}
{%- endmacro %}

<div id="cssmenu">
<ul>
  <li class='has-sub'><span><a href="{{ SITEURL }}/">Articles</a></span>
  <ul>
  {% for article in articles %}  
    {% if loop.index < FEED_MAX_ITEMS %}
      <li><a href="{{ SITEURL }}/{{ article.url}}">{{ article.title }}</a></li>
    {% endif %}
  {% endfor %}
      <hr/>
      <li><a href="{{ SITEURL }}/archives.html">Archives</a>
  </ul>
  </li>

  {{ submenu(categories, 'categories', 'Catégories') }}

  <li class='has-sub'><span>À lire</span>
  <ul> 
    {% for page in pages %}
    <li><a href="{{SITEURL}}/{{page.url}}"><span>{{ page.title }}</span></a></li>
    {% endfor %} 
    {% if pages and LINKS %}
    <hr/>
    {% endif %}
    {% for link, target in LINKS %}
    <li><a href="{{target}}"><span>{{ link }}</span></a></li>
    {% endfor %} 
  </ul>
  </li>


{#
  {% if FEED or FEED_RSS %}
  <li class='has-sub'><a href="{{ SITEURL }}/#">S'abonner</a>
       <ul>
         {% if FEED %}
         <li><a href="{{ SITEURL }}/{{ FEED }}" rel="alternate">Flux ATOM</a></li>
         {% endif %}
         {% if FEED_RSS %}
         <li><a href="{{ SITEURL }}/{{ FEED_RSS }}" rel="alternate">Flux RSS</a></li>
         {% endif %}

         {% if categories %}
         {% for category, articles in categories %}
         <li><a href="{{SITEURL}}/{{CATEGORY_FEED_ATOM % (category)}}"><span>{{ category }}</span></a></li>
         {% endfor %} 
         {% endif %}
       </ul>
  </li>
  {% endif %}
#}

</ul>
</div>