Skip to content

Commit

Permalink
clock
Browse files Browse the repository at this point in the history
  • Loading branch information
stephband committed Dec 17, 2023
1 parent 7db2666 commit d41e86e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions literal-html/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ A `src` attribute pointing to a JS module imports the default export of that
module:

```html
<template is="literal-html" src="../data/clock.js">
<template is="literal-html" src="../build/data/clock.js">
<p>${ data.time.toFixed(0) }</p>
</template>
```
<div class="demo-block block">
<template is="literal-html" src="../data/clock.js">
<template is="literal-html" src="../build/data/clock.js">
<p>${ data.time.toFixed(0) }</p>
</template>
</div>
Expand Down
4 changes: 2 additions & 2 deletions literal-html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ <h3 id="import-json-data">Import JSON data</h3>
<h3 id="import-a-js-module">Import a JS module</h3>
<p>A <code>src</code> attribute pointing to a JS module imports the default export of that
module:</p>
<pre><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>template</span> <span class="token attr-name">is</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>literal-html<span class="token punctuation">"</span></span> <span class="token attr-name">src</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>../data/clock.js<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
<pre><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>template</span> <span class="token attr-name">is</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>literal-html<span class="token punctuation">"</span></span> <span class="token attr-name">src</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>../build/data/clock.js<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span><span class="token punctuation">></span></span>${ data.time.toFixed(0) }<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>template</span><span class="token punctuation">></span></span>
</code></pre>
<div class="demo-block block">
<template is="literal-html" src="../data/clock.js">
<template is="literal-html" src="../build/data/clock.js">
<p>${ data.time.toFixed(0) }</p>
</template>
</div>
Expand Down

0 comments on commit d41e86e

Please sign in to comment.