Skip to content

Commit

Permalink
#123: update ejx include syntax usage
Browse files Browse the repository at this point in the history
  • Loading branch information
robhrt7 committed Sep 20, 2015
1 parent 2baba45 commit bd57435
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/base/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ As we mentioned before, it's easy to use other server-side templating engines li
By default all files are pre-processed with [EJS](http://ejs.co/), so you're free to use custom EJS features in any spec page - like includes or even plain JavaScript:

```html
<% include filename.html %>
<%- include('filename.html') %>
<% if (info.title === 'Title') {% > Action! <% } %>
```

Expand Down
22 changes: 9 additions & 13 deletions docs/test-specs/styles/index.src.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<div class="source_info">
<% include includes/all-tags.html %>
</div>

<div class="source_warn">
<% include includes/all-tags.html %>
<div class="source_warn">
<% include('includes/all-tags.html') %>
</div>

<div class="source_doc">
<% include includes/all-tags.html %>
<%- include('includes/all-tags.html') %>
</div>

<div class="source_note">
<% include includes/all-tags.html %>
<%- include('includes/all-tags.html') %>
</div>

<p><a class="source_a_d" href="#777">Links can be highlighted as link to design specification by adding <code>.source_a_d</code> as a class on the link</a></p>
Expand Down Expand Up @@ -97,22 +93,22 @@ <h2>Linking Your Project's CSS</h2>
<section class="source_section">
<h2>Spec Page Markup</h2>

<% include includes/all-tags.html %>
<%- include('includes/all-tags.html') %>

<div class="source_info">
<% include includes/all-tags.html %>
<%- include('includes/all-tags.html') %>
</div>

<div class="source_warn">
<% include includes/all-tags.html %>
<%- include('includes/all-tags.html') %>
</div>

<div class="source_doc">
<% include includes/all-tags.html %>
<%- include('includes/all-tags.html') %>
</div>

<div class="source_note">
<% include includes/all-tags.html %>
<%- include('includes/all-tags.html') %>
</div>

</section>
Expand Down

0 comments on commit bd57435

Please sign in to comment.