frank
frank copied to clipboard
Slim template language support
I think it would be great to have support for the template language Slim. It appears that it's not included with Tilt at the moment, but I'm not sure how much more difficult that would make it.
Will look into this for the next release. Shouldn't require much at all. Also thinking about making the Tilt integration tighter so I don't have to manually add stuff as it comes into Tilt, just not sure the best way to handle it yet.
I can give the Slim integration a go if you give me an idea of which files to look at.
Was this ever supported? It would be great to use Slim
I don't believe any further progress has been made on Slim integration.
That's a real shame ... I can't see that it would be that hard to implement, since Tilt supports Slim already. I've tried putting require 'slim' in setup.rb, but it still didn't work.
Anybody got any idea what has to be done to make this work?
I really like Frank, but really prefer Slim over Haml!
cheers,
DAZ
I don't really have any time to look into it at the moment, but it'll need to be in the list here: https://github.com/blahed/frank/blob/aa3a21c16e13d50d0d6299c3e50d0ca787c7efee/lib/frank/base.rb#L65 so frank knows about slim.
Thanks Travis! All that was needed was to add slim to the html array.
I forked the code and updated it and have issued a pull request.
If anybody wants the updated code you can do this git clone [email protected]:daz4126/frank.git cd frank/ gem build frank.gemspec gem install frank-1.0.12.gem
Don't worry about any warnings ... now the installed gem will have a version of Frank that supports Slim!
cheers,
DAZ ps - I really like Frank ... not as heavy as middleman, thanks for making it!
Excellent! I'll merge it in later today and bump the version. Nice work!
Also, thanks for mentioning middleman. I think that's a great project and really well done, but it does seem to be heavy and offer too much for my taste.
I'd love to get a new version of frank out, but i'm a bit undecided on what I actually want to do with it (other than the obvious rewrite of the code). If you have suggestions or a direction, i'd love to hear it.
That's great Travis, cheers.
I've been playing around with different static site generators and Middleman could do it all, but definitely felt too heavy. Frank felt like it had the balance just about right.
I'd love to help out with ideas on Frank (I have a few already!) ... and could maybe even help rewrite some of the code if you point me in the right direction.
I can't find an email address for you, but mine is [email protected] if you want to have a quick exchange about it.
cheers,
DAZ
In case anyone stumbles on this comment via a search engine (as I did) you need to require 'slim'
to make the templates work. ;-)