Skip to content

Commit

Permalink
Add language to code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
nebrelbug committed Apr 14, 2020
1 parent 0c00222 commit ab38630
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -75,7 +75,7 @@ We know nobody reads through the long and boring documentation in the ReadMe any

### Simple Template

```
```javascript
var myTemplate = "<p>My favorite kind of cake is: <%= it.favoriteCake %></p>"

Eta.render(myTemplate, {favoriteCake: 'Chocolate!'})
Expand All @@ -84,7 +84,7 @@ Eta.render(myTemplate, {favoriteCake: 'Chocolate!'})

### Conditionals

```
```ejs
<% if(it.somevalue === 1) { %>
Display this
<% } else { %>
Expand All @@ -94,7 +94,7 @@ Display this instead

### Loops

```
```ejs
<ul>
<% it.users.forEach(function(user){ %>
<li><%= user.name %></li>
Expand All @@ -104,15 +104,15 @@ Display this instead

### Partials

```
```ejs
<%~ E.include('mypartial') %>
```

```
```ejs
<%~ E.includeFile('./footer') %>
```

```
```ejs
<%~ E.include('users', {users: it.users}) %>
```

Expand Down

0 comments on commit ab38630

Please sign in to comment.