regularberry/Awful — pull request #75 by nolanw (2012-05-28 05:12:50+00:00)
Title: Unified templates with template tester

As teased in #70, templates are now a single CSS file. The `

` has gained a class of `.iphone` or `.ipad` so your template can target a selector at a given device. I've completely redone the markup, which is now in `posts.html`. It uses `

` for posts, `

` for post header and `

` for post body, and I redid the post header. I've also ported the default and dark themes to this new style of templates.

I'm certain I fucked some things up when porting the templates; CSS frustrates the shit out of me and I can't handle it for longer than a half hour at a go. Hopefully a dev with some talent can fix up anything I've fucked. I've hopefully made it easier on you with the new

### Template tester!

If you fire up Xcode and switch your target to **Template Tester**, you'll get an app that helps you work on templates in the simulator. Fire it up and you'll get a list of templates in the `Resources/web resources` folder. Tap a template and you'll see it rendered with some sample posts. Now start working on your template. Whenever you hit 'Save', the simulator will reload your template. Way the fuck faster!

If you find bugs or have feature requests for the Template Tester, make a new issue just like for Awful. We should consider issues with our tools exactly as important as issues with the app itself.

This is ready to merge once the CSS is back up to par.