Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (() => {
- const app = Sammy('#rooter', function () {
- this.use("Handlebars", "hbs");
- this.get("/", function (ctx) {
- this.loadPartials(getPartials())
- .partial("./templates/home.hbs");
- });
- this.get("/register", function (ctx) {
- })
- this.post("/register", function (ctx) {
- })
- this.get("/login", function (ctx) {
- })
- this.post("/register", function (ctx) {
- })
- this.get("/logout", function (ctx) {
- })
- function getPartials() {
- return {
- header: "./templates/common/header.hbs",
- footer: "./templates/common/footer.hbs"
- }
- }
- });
- app.run();
- })()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement