frank icon indicating copy to clipboard operation
frank copied to clipboard

Slim template language support

Open celeryclub opened this issue 12 years ago • 10 comments

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.

celeryclub avatar Jun 26 '12 21:06 celeryclub

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.

trvsdnn avatar Jun 30 '12 15:06 trvsdnn

I can give the Slim integration a go if you give me an idea of which files to look at.

celeryclub avatar Jun 30 '12 15:06 celeryclub

Was this ever supported? It would be great to use Slim

daz4126 avatar Aug 27 '13 14:08 daz4126

I don't believe any further progress has been made on Slim integration.

celeryclub avatar Aug 27 '13 15:08 celeryclub

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

daz4126 avatar Aug 28 '13 11:08 daz4126

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.

trvsdnn avatar Aug 28 '13 13:08 trvsdnn

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!

daz4126 avatar Aug 28 '13 17:08 daz4126

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.

trvsdnn avatar Aug 28 '13 18:08 trvsdnn

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

daz4126 avatar Aug 28 '13 21:08 daz4126

In case anyone stumbles on this comment via a search engine (as I did) you need to require 'slim' to make the templates work. ;-)

opensourceame avatar Feb 12 '15 14:02 opensourceame