0

I have to use static hosting to create a website, how can avoid duplicating code without processors like blade or php.

I'm trying to use Firebase but I can't think of anyway to do this, I would normally use blade.

The only way I can thing of is using Dreamweaver templates but I really don't want to regress to that.

2
  • use a static site generator. It will generate html files. Upload them to the host. php - sculpin.io or Ruby - middlemanapp.com Commented May 31, 2016 at 10:56
  • Yes, a static site generator, there are a lot to choose. You can also use a javascript template engine like Handlebars. Commented May 31, 2016 at 11:23

2 Answers 2

1

The way to go on this is to use a STATIC SITE GENERATOR, that will allow you to use partials(includes in PHP) there are a lot to choose from but a good recommendation is to use middleman here is the link to MiddleMan partials docs. good luck.

Sign up to request clarification or add additional context in comments.

Comments

1

I use Yeoman with Yeogurt which uses Jade by default for templating but can use Nunchucks. You can use LESS or SASS/SCSS. Really good if you want to create a nice tidy static site. It takes JSON fixtures too so you can even create data for the site and compile it all down into static html, minified css and js, and compressed images.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.