Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laras126/handlebars-starter
A simple starter template using some PHP, Handlebars.js, and JSON for data storage.
https://github.com/laras126/handlebars-starter
Last synced: 18 days ago
JSON representation
A simple starter template using some PHP, Handlebars.js, and JSON for data storage.
- Host: GitHub
- URL: https://github.com/laras126/handlebars-starter
- Owner: laras126
- Created: 2015-04-10T21:07:59.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-11T16:03:16.000Z (almost 10 years ago)
- Last Synced: 2024-11-09T03:07:55.727Z (2 months ago)
- Language: PHP
- Size: 227 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### What's this?
This is very bare-bones templating kit created using Handlebars.js and some PHP includes. Data is stored in JSON files, and sitewide components and content reside in partials/base.php.
### To use:
1. Duplicate the 'template.php' file.
2. Rename it to your liking.
3. Duplicate the 'data/template.json' file.
4. Rename to your liking, usually the same name as the file.
5. In your new PHP file, change the ```$data_file_name``` variable to the same as your JSON file above.
6. Add your markup to the page and voila!