<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Meta Bates &#187; extension</title>
	<atom:link href="http://www.metabates.com/tag/extension/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.metabates.com</link>
	<description>The technical ramblings of Mark Bates.</description>
	<lastBuildDate>Wed, 01 Feb 2012 16:25:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Release 0.2.0</title>
		<link>http://www.metabates.com/2008/03/11/release-020/</link>
		<comments>http://www.metabates.com/2008/03/11/release-020/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 20:47:30 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[mack]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[render]]></category>

		<guid isPermaLink="false">http://www.mackframework.com/2008/03/11/release-020/</guid>
		<description><![CDATA[A couple of really cool features in this release. In controllers and views you canÂ  now call: render(:url=&#62; "http://www.mycoolurl.com") Developers can now also develop their own custom rendering systems, without monkey patching the core: class Mack::Rendering::Pdf &#60; Mack::Rendering::Base def render # do work to render stuff as a PDF end end Now add this to [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of really cool features in this release. In controllers and views you canÂ  now call:</p>
<pre>render(:url=&gt; "http://www.mycoolurl.com")</pre>
<p>Developers can now also develop their own custom rendering systems, without monkey patching the core:</p>
<pre>class Mack::Rendering::Pdf &lt; Mack::Rendering::Base
  def render
    # do work to render stuff as a PDF
  end
end</pre>
<p>Now add this to the list of available render systems:</p>
<pre>app_config.mack.rendering_systems &lt;&lt; :pdf</pre>
<p>You should now be able to do this in your controller:</p>
<pre>class MyAwesomeController &lt; Mack::Controller::Base
  def pdf
    render(:pdf =&gt; "my_pdf_template")
  end
end</pre>
<p>Install:</p>
<pre>$ sudo gem install mack</pre>
<p>Changelog:</p>
<ul>
<li>ticket: <a href="http://trac.mackframework.com/ticket/3" target="_blank">3</a> Render url in Controllers/Views</li>
<li>ticket: <a href="http://trac.mackframework.com/ticket/5" target="_blank">5</a> Render Extension System.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2008/03/11/release-020/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.249 seconds -->

