Skip to content

simple exercise that shows how it is possible to insert a part of *templating* into markdown

License

Notifications You must be signed in to change notification settings

rondinif/LAB01-MARKDOWN-TEMPLATE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LAB01-MARKDOWN-TEMPLATE

simple exercise that shows how it is possible (and easy) to insert a part of templating into markdown.

In this test we use ** Handlebars.js **, an extension to the Mustache templating language.

template/source/test

see test.js

how to:

git clone https://github.com/rondinif/LAB01-MARKDOWN-TEMPLATE
cd LAB01-MARKDOWN-TEMPLATE
npm i
npm test

rendered output

<h1>primo capitolo</h1>
<p>Questa semplicissima demo mostra come utilizzare <strong>handlebars</strong> insieme a <strong>markdown</strong>, ed ora possiamo dire:</p>
<p>Handlebars <strong>rocks!</strong> in markdown!</p>
<p>a piece of code:</p>
<pre><code>const doesWhat = 'rocks!';
</code></pre>
<h1>secondo capitolo</h1>
<p>se abbiamo un <a href="https://developer.mozilla.org/it/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a> possiamo
dinaminamicamente creare un elenco puntato come questo:</p>
<ul>
<li>Yehuda Katz</li>
<li>Alan Johnson</li>
<li>Charles Jolley</li>
</ul>

preview output

primo capitolo

Questa semplicissima demo mostra come utilizzare handlebars insieme a markdown, ed ora possiamo dire:

Handlebars rocks! in markdown!

a piece of code:

const doesWhat = 'rocks!';

secondo capitolo

se abbiamo un Array possiamo dinaminamicamente creare un elenco puntato come questo:

  • Yehuda Katz
  • Alan Johnson
  • Charles Jolley

About

simple exercise that shows how it is possible to insert a part of *templating* into markdown

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published