bradpauly.com

Review and Static Pages

August 22, 2008

I was re-reading my last two posts and decided that I might be straying from my original idea of stating my intent before doing any new development. So, I hereby state that the next piece of development is to add “static” pages to Luna.

Done…. almost

I already have a site controller that is the default controller for the app. The index action grabs all my posts and the index view displays them. Adding a new “page” is as easy as adding a new view for the site controller and making sure it is recognized in our routes. The only extra bit is that I want some organization. I want /projects/luna as opposed to /luna. So we’ll need to add a route for this.

Now we create the view and we are good to go. You can see my first static page at http://bradpauly.com/projects/luna

What’s next?

Formatting. How could I have a blog without being able to add links? All html is escaped right now. I want to add support for textile or markdown. I’ll have to do a little research first. If anyone has any suggestions, please share!

Comments Add a Comment

lolnix - August 31, 2008
How's luna coming along? I'm a django developer and don't know if there is an equivalent, but django has a markdown plugin prewritten and easily dropped into place.

Email me if you want to discuss this further.
Brad Pauly - September 03, 2008
It's coming along.. little by little. I'm hoping to do another revision this week. Thanks for the note on markdown. RedCloth includes markdown and textile support and I think that is the direction I am going to take.