https://github.com/alanbsmith/handlebars-ajax-example
a simple example for using ajax with handlebars templates
https://github.com/alanbsmith/handlebars-ajax-example
Last synced: 10 months ago
JSON representation
a simple example for using ajax with handlebars templates
- Host: GitHub
- URL: https://github.com/alanbsmith/handlebars-ajax-example
- Owner: alanbsmith
- Created: 2016-09-02T21:51:56.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-06T17:45:16.000Z (almost 10 years ago)
- Last Synced: 2025-03-28T18:52:19.087Z (over 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Handlebars Example
A small, example app for using Handlebars templates with Node/Express and Webpack
### UP & RUNNING
```
npm install
```
```
npm start
```
```
open http://localhost:8080/
```
### WHAT IS HAPPENING??
The rendering logic lives in `src/index.js`. When the document content is loaded, it makes the AJAX call to get the API data, passes it to the appropriate template, and appends it to the corresponding `div` element.