akirikovich / html-server

2 stars 1 forks source link

External config for static paths #1

Open vitkarpov opened 10 years ago

vitkarpov commented 10 years ago

There are static paths definition right inside app.js. It's supposed to be into external config.

I think it would be convenient to have something like config.json with predefined paths, so user could easy to change them.

Maybe this paths may defining within external generator (e.g. yeoman), so this file could be auto generated.

akirikovich commented 10 years ago

I think that it's good idea, but i have some doubts in sense of useing yeoman generator. In this case i offer to create individual configuration json file with all neccessary parameters.

In future we can migrate initial creation of this file on yeoman.

vitkarpov commented 10 years ago

I mean another.

If I would use your application within mine, I would like to configure that paths and likely I'll don't do that manually — it's generator's task.