Skip to content

Commit

Permalink
Rename basic.ts to basic.js. Change basic.js to use ES6 imports
Browse files Browse the repository at this point in the history
  • Loading branch information
nebrelbug committed Sep 20, 2020
1 parent acf2977 commit bda22fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/basic.ts → examples/basic.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var Eta = require('../dist/eta.cjs')
import * as Eta from 'eta'

var template = `
<%=it.value%>
Expand All @@ -16,4 +16,4 @@ console.log('===========================')
console.log(Eta.render(template, { value: '<img>Something</img>' }))

var customTagTemplate = `<label>First Name: {{=it.firstName}}</label>`
console.log(Eta.render(x, { firstName: "ABC" }, { tags: ["{{", "}}"]}))
console.log(Eta.render(customTagTemplate, { firstName: 'ABC' }, { tags: ['{{', '}}'] }))

0 comments on commit bda22fd

Please sign in to comment.