Skip to content

Instantly share code, notes, and snippets.

View joaquinrfs's full-sized avatar
🐺
Awoo!

Joaquín Fritsch Santis joaquinrfs

🐺
Awoo!
View GitHub Profile
@tracker1
tracker1 / 01-directory-structure.md
Last active May 4, 2024 19:55
Anatomy of a JavaScript/Node project.

Directory structure for JavaScript/Node Projects

While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.

Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.

Directories

  • lib/ is intended for code that can run as-is
  • src/ is intended for code that needs to be manipulated before it can be used
@eric1234
eric1234 / README.md
Last active May 19, 2024 12:45
A better way of doing layouts in PHP

Usage

Creating a Layout File

Create a file called layout.php. Where you want the content to appear add <?php echo $content ?>. Here is an example: