reading-notes

View on GitHub

Mustache and FlexBox

Mustache

Mustache is a template that has less logic and it used to deal with HTML.
it has no for loops or if-else clauses, only tags.
Mustache uses placeholder concept, and for a placeholder, it used .
and it will replace whatever inside the double braces with an object value.

  let date = new Date();
  Mustache.render('year is: ', {year: date.getFullYear()});

FlexBox

flex boxing is a positioning method, its use to position elements within the page.
to make an element has the flexbox property, display: flex; property is added for the selected element.

some properties.