Skip to content

Commit

Permalink
@trivial: updated display context section
Browse files Browse the repository at this point in the history
* added information about the default context for HTML comments
  • Loading branch information
Radu Cotescu committed Mar 16, 2015
1 parent af32acb commit 3082f35
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions SPECIFICATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,12 @@ Note that `context='elementName'` allows only the following element names:
section, nav, article, aside, h1, h2, h3, h4, h5, h6, header, footer, address, main, p, pre, blockquote, ol, li, dl, dt, dd, figure, figcaption, div, a, em, strong, small, s, cite, q, dfn, abbr, data, time, code, var, samp, kbd, sub, sup, i, b, u, mark, ruby, rt, rp, bdi, bdo, span, br, wbr, ins, del, table, caption, colgroup, col, tbody, thead, tfoot, tr, td, th
```

If you want to use Sightly expressions within HTML comments you might need to adjust the context depending on what you want to output, as the automatically implied context will be `comment`:

```html
<!--[if IE]><link rel="shortcut icon" href="${site.root @ context='uri'}/images/favicon/favicon.ico?v2"><![endif]-->
```

#### 1.2.2. Format
This option can be used to format strings.
```html
Expand Down

0 comments on commit 3082f35

Please sign in to comment.