0

I am using the following embedded code in my slidify. It's a code snippet from AngularJS code.

```html
<span>{{title}}</span>
<input type="text" ng-model="name"></input>
<span>Name: {{name}}</span>
```

I have 2 questions.

  1. Template placeholders ({{title}}, {{name}}) are disappearing in the final presentation. I would like them rendered as is with some syntax highlighting. How do I escape these ? I have tried {r eval=F} andr and ```js. They all have the same issue.

  2. Where is the complete list of syntax highlighters I can use (other than ```r) with slidify.

I went through the slidify documentation and stack overflow questions and couldn't find any workable solution.

krupny
  • 3
  • 1

1 Answers1

1

This is an undocumented feature of slidify. If you add the class RAW to any slide, it will not expand the mustache template within the content of the slide. By default, slidify does a double pass through the content. A slide of the RAW class does a single pass through, thereby leaving mustache templates in the content unresolved, as desired.

--- .RAW

```html
<span>{{title}}</span>
<input type="text" ng-model="name"></input>
<span>Name: {{name}}</span>
```
Ramnath
  • 54,439
  • 16
  • 125
  • 152
  • That worked. Thanks Ramnath for helping with that issue and also explaining the mechanism. – krupny Aug 06 '13 at 03:49
  • You are welcome. There are more treasures hidden in the Slidify source code, which I shall document slowly. – Ramnath Aug 06 '13 at 04:39