Skip to content

Templates

Sean Molenaar edited this page Nov 2, 2016 · 7 revisions

!!!WORK IN PROGRESS!!!

Templates are "simple" php infused HTML files. Well, they're simple if you know some PHP. But you probably do as you're running this PHP based devtool.

The current setup of templates allows you to take any name you want for a template. As long as there's a .phtml, .css and .js file that php-drafter can find in your include path or apib path that carries the same name. You have several structure options for this:

  • /templates/<templatename>/<templatename>.<filename>
  • /templates/<templatename>.<filename>
  • /<templatename>/<templatename>.<filename>
  • /<templatename>.<filename>
  • File is in main repo

By default it uses default as a template, which you can find in the Out/HTML directory.

Since user templates have priority you can even call your theme default (saves you using a CLI argument).

tl;dr

/index.apib /templates//.phtml /templates//.css /templates//.js
Clone this wiki locally