emmett-framework / emmett

The web framework for inventors
BSD 3-Clause "New" or "Revised" License
1.06k stars 71 forks source link

Create empty directory 'templates' on first start #144

Closed GiantCrocodile closed 4 years ago

GiantCrocodile commented 8 years ago

Like languages, logs and static there should be an empty directory called 'templates' being created on first weppy launch.

mijdavis2 commented 8 years ago

The only reason I'd argue against that is if you were using a weppy instance strictly as an api for backend processes. Though IMO and in your defense it is always helpful for even a backend api behind a vpn/vpc to have an "about" or "doc" page for developers using it. Maybe weppy is overkill for a simple backend api, but it's just so darn convenient.

gi0baro commented 8 years ago

@GiantCrocodile the reason templates folder is not created on application launch are mainly:

I think this behaviour wouldn't be changed. Probably, the changes on folder creation will be to avoid creating them at all, but this will be inspected carefully considering the next versions and the development process.

GiantCrocodile commented 8 years ago

Okay but why do we create other folders then? @mijdavis2 argument is applying too if you have no static files or no need for different languages.

I've created this issue because when I started a new project after some time I forgot where to place the templates. So I looked it up in the docs and I found with bad luck a place where the folders default name for templates was wrong (by a small typo: template, not templates). Then I struggled because it won't render still. This could have be prevented with an already existing folder like the other folders.

On the other hand: Why is it not possible to give an other name to languages or static folder? Then we could create a completely localized environment in countries where English isn't the native language.