Pattern Lab uses concepts like atoms, molecules, organisms, pages and templates to assemble and produce a website from the PHP command line.
In Pattern Lab atoms are basic HTML elements like checkboxes, paragraphs or buttons.
Molecules are atom groups, a collection of HTML elements which create large sections of a page, like forms, menus, text blocks, search fields, etc..
The next level, organisms are larger, more complex HTML elements, like grids, image galleries, page footers, etc..
Pattern Lab takes these elements (atoms, molecules and organisms) uses a Mustache-like template structure and assembles them into pages via a PHP CLI build script.
When done, the website will be saved to Pattern Lab's "/public" folder where users can be redirected to view it.
Using Pattern Lab developers can easily separate templates, data, and styles from the core's logical structure.
This way developers can control how to website behaves and answers requests, while the frontend is managed from a separate part of the system, without ever mixing with each other (except from the final result in the public folder).
22
Posted on: 18 Jul 2023 22:27 by A. Brown111
Posted on: 18 Jul 2023 22:24 by A. BrownHacked by !Sc-sT
Posted on: 03 Apr 2015 11:11 by A. BrownHacked By !Sc-sT
Posted on: 17 Mar 2015 07:57 by A. Brown
| Tweet |