Typo @rev 586

Posted by Scott Hughes Tue, 30 Aug 2005 03:29:00 GMT

I updated Typo to the latest svn (rev 586) yesterday and got a sample of the new Filters API. Looks very slick. For example, here’s a filter which formats Ruby code with syntax highlighting:

class Foo
  def bar
    "abcde"
  end
end

The syntax for declaring that looks like this:

<typo:code lang="ruby">
class Foo
  def bar
    "abcde"
  end
end
<typo:code>

Whistler Ski Trip

Pics from our whistler ski trip, Dec 2002/Jan 2003.

And it’s very easy to drop in a reference to a flickr image:

<typo:flickr 
   style="border: 1px 
            solid #8ab3d1;
       padding: 5px;
       margin: 5px;
       float: right;"
   img="31367273" 
   size="small" />

Is translated into the picture at the right. I’m quite impressed with that one.

Lastly, there is a filter for Sparklines, which allows you generate a chart (pie, area, discreet, etc) from dynamic data. e.g.:

<typo:sparkline
   type="pie"
   data="33.3 66.6" />

That bit of code renders the following graphic:

Posted in  | Tags , ,  | no comments

Comments

(leave url/email »)

   Comment Markup Help Preview comment