cmillr / simple-md

A very-simple website platform based on PHP and Markdown.
1 stars 0 forks source link

Template Assets, Content Assets? #6

Open cmillr opened 12 years ago

cmillr commented 12 years ago

Perhaps there's a good way for asset requests to be handled by PHP? If this is the case, then we could allow an assets/ directory inside each template directory, so templates could become entirely modular and redistributable.

This way, all the content-based assets can stay with the content tree (maybe side-by-side with the contents tree could be an assets directory?) and all the template-based assets can stay with the template.

cmillr commented 12 years ago

Let's go a step further: what if all content and assets lived in public_html, but only requests to assets were allowed through? And all other requests, including to content that exists in the public tree, were routed to index.php?