Changeset 57 contains the following improvements:
- Updated db/setup.rb. Option parsing has been improved and you can
select a template for your new Radiant database.
- Added an export controller to make it easier to create templates. It
exports your database in YAML format. Simply hit /admin/export/.
If you examine the db/templates directory now you will see a couple of
simple YAML templates which can be used to generate the initial database
for a Radiant install. I’ve included three default templates:
- An empty template (to create a blank database)
- A bare bones template (the same as what you have seen before)
- A styled blog template
I just finished coding option #3 today. It demonstrates a lot of the
advanced features of Radiant and also looks nice.
I would love to see more options for people just getting started with
Radiant. If you are a talented designer and I’d like to invite you to
participate in an informal contest of sorts. I’m looking for two basic
- A blog template
- A simple company web site template
Here’s the catch: you can’t use images in the design at all. (Since
Radiant doesn’t have the attachments system yet it wouldn’t make sense
to put a lot of additional images in the public/images directory.)
If you submit a template that I like it will have a shot at being
included in the core distribution.
The easiest way to create a template is to setup a Radiant database the
way you like it and then go to /admin/export/ to get the YAML for it.
Then take the YAML and paste it into a template file in the db/templates
directory. You will need to modify the generated YAML a bit, but it
should be enough to get you started.