ludovicchabant / PieCrust

A simple PHP website engine and static file generator.
http://bolt80.com/piecrust
Other
239 stars 43 forks source link

Import a page from another page #146

Closed codekiln closed 9 years ago

codekiln commented 10 years ago

I am trying to make a template for a JavaScript-enabled single page layout. Right now my layout consists of a single gigantic page, which is a bit hard to edit. It would be easier if my users could edit multiple pages that would get put into the appropriate div sections of one page. I know about using the {% include 'challenge.html' %} to import a template. I haven't been able to use include to import a page from the pages directory.

I would like my users to be able to use markdown to author this site. Considering that I would like to make a single page site, should I create a subdirectory of the templates directory, and use only markdown files in there?

Is there a way to use YML in a header of the templates in the templates directory?

ludovicchabant commented 10 years ago

I'm not exactly sure what you're trying to do but you have a few options: