Mustache is a logic-less template syntax works by expanding tags in a template using values provided in a hash or object. Javascript templating is technique used for showing the client-side view templates with Javascript by using a JSON data source. mustache.js is an implementation of the mustache template system in JavaScript. It is considered as the base for JavaScript templating.
so when run Mustache.render(“Hello, {{name}}”, { name: “Sherlynn” }); When Mustache compiles syntax, it looks for the actual value of name property - which is “Sherlynn” - in the object we pass in, and replace of {{ name }} .
FLEXBOX is a CSS method to rearrange a container element's children. it starts by choose display:flex in the container CSS. flexbox has different attriburtes for parent element and they are:
flex-directionwhich establishes the main-axis and defining the direction of the axis in the container. it has different values as:row(default)row-reverseright to leftcolumnsame as row but top to bottomcolumn-reversesame asrow-reversebut bottom to top
flex-wrapwhich allows the items to wrap as needed. it has different values as:nowrap(default)wrapflex items will wrap onto multiple lines from top to bottom.wrap-reverseflex items will wrap onto multiple lines from bottom to top
flex-flowwhich is a shorthand forflex-directionandflex-wrapproperties it has different values as:row wrapa combination ofrowandwraprow-reverse wrapa combination ofrow-reverseandwrapcolumn wrapa combination ofcolumn wrapandwrapcolumn-reverse wrapa combination ofcolumn-reverseandwrap
justify-content,align-itemsandalign-contentdefines the alignment along the main axis and helps distribute extra free space leftover. the differnce betweenjustify-contentandalign-itemsoralign-contentthe directions are perpendicular to each other. they have different values as:flex-start(default)flex-enditems are packed toward the end of the flex-directioncenteritems are centered along the linespace-betweenitems are evenly distributed in the line; first item is on the start line, last item on the end linespace-arounditems are evenly distributed in the line with equal space around them.
orderwhich is used to re-order the child and it's value is an intgerflex-growwhich defines the ability for a flex item to grow if necessaryflex-shrinkwhich defines the ability for a flex item to shrink if necessaryalign-selfwhich allows to re-align the child
