librelist archives

« back to archive

Foldable (a new plugin)

Foldable (a new plugin)

From:
Graham Ashton
Date:
2012-02-27 @ 10:59
Micah Chalmer has written a new plugin that automatically sets the summary
of an article to the beginning of the body content. Rather nifty.

There's a page explaining how to use it in the plugin directory:

http://nestacms.com/docs/plugins

I've also just published the article I wrote on using 
rack-codehighlighter. I was going to wait until I'd added notes on using 
Pygments, but you can check Ryan's clean theme for that.

http://nestacms.com/docs/recipes/syntax-highlighting-with-rack-codehighlighter

Graham

Re: [nesta] Foldable (a new plugin)

From:
Mika Tuupola
Date:
2012-02-27 @ 11:45
On Feb 27, 2012, at 12:59 PM, Graham Ashton wrote:

> Micah Chalmer has written a new plugin that automatically sets the 
summary of an article to the beginning of the body content. Rather nifty.

Really cool. Now i can get rid of my own hacks. I have been using "..." 
instead of "<!-- ~~fold ~~ -->"" as separator. But having the code as 
plugin is way much cooler.

> I've also just published the article I wrote on using 
rack-codehighlighter. I was going to wait until I'd added notes on using 
Pygments, but you can check Ryan's clean theme for that.
> 
> http://nestacms.com/docs/recipes/syntax-highlighting-with-rack-codehighlighter


Does it work with Nesta caching enabled? I remember trying it long time 
ago and the problem was Nesta cached the page before Rack::CodeHighlighter
was run.

-- 
Mika Tuupola
http://www.appelsiini.net/

Re: [nesta] Foldable (a new plugin)

From:
Graham Ashton
Date:
2012-02-27 @ 14:24
On 27 Feb 2012, at 11:45, Mika Tuupola wrote:

> Does it work with Nesta caching enabled? I remember trying it long time 
ago and the problem was Nesta cached the page before Rack::CodeHighlighter
was run.

Probably not, now that you mention it.

I'll probaably write another post on using highlight.js (though it won't 
say more than "download highlight.js, add the CSS and JS to your layout, 
and reload the page...).

--
Graham Ashton
Founder, The Agile Planner
http://theagileplanner.com | @agileplanner | @grahamashton


Re: [nesta] Foldable (a new plugin)

From:
Mika Tuupola
Date:
2012-02-27 @ 14:35
On Feb 27, 2012, at 4:24 PM, Graham Ashton wrote:

> I'll probaably write another post on using highlight.js (though it won't
say more than "download highlight.js, add the CSS and JS to your layout, 
and reload the page...).

I ended up using Prettify:

http://code.google.com/p/google-code-prettify/

Problem with Rack::CodeHighlighter was also that those :::ruby strings 
ended up in the RSS feed too.

-- 
Mika Tuupola
http://www.appelsiini.net/