Skip to content

Commit

Permalink
Upgrade examples/ view files to comply with EJS 3.x (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoroth committed Nov 17, 2022
1 parent c6ca4c7 commit 597107d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hotwired/stimulus-examples",
"version": "3.0.0",
"version": "3.1.0",
"private": true,
"dependencies": {
"@babel/core": "^7.5.5",
Expand Down
4 changes: 2 additions & 2 deletions examples/views/clipboard.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% include layout/head %>
<%- include("layout/head") %>

<p data-controller="clipboard" data-clipboard-supported-class="clipboard--supported">
<input data-clipboard-target="source" class="clipboard-source" type="text" value="https://stimulus.hotwired.dev" readonly>
Expand All @@ -16,4 +16,4 @@
<textarea class="clipboard-paste" placeholder="Paste here…"></textarea>
</p>

<% include layout/tail %>
<%- include("layout/tail") %>
4 changes: 2 additions & 2 deletions examples/views/content-loader.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% include layout/head %>
<%- include("layout/head") %>

<p data-controller="content-loader"
data-content-loader-url-value="/uptime"></p>
Expand All @@ -11,4 +11,4 @@
data-content-loader-url-value="/uptime"
data-content-loader-refresh-interval-value="1000"></p>

<% include layout/tail %>
<%- include("layout/tail") %>
4 changes: 2 additions & 2 deletions examples/views/hello.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% include layout/head %>
<%- include("layout/head") %>

<form method="dialog" data-controller="hello">
<p>
Expand All @@ -7,4 +7,4 @@
</p>
</form>

<% include layout/tail %>
<%- include("layout/tail") %>
4 changes: 2 additions & 2 deletions examples/views/slideshow.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% include layout/head %>
<%- include("layout/head") %>

<div data-controller="slideshow" data-slideshow-current-slide-class="slide--current">
<button data-action="slideshow#previous">←</button>
Expand All @@ -10,4 +10,4 @@
<div data-slideshow-target="slide" class="slide">🙊</div>
</div>

<% include layout/tail %>
<%- include("layout/tail") %>

0 comments on commit 597107d

Please sign in to comment.