Yeah, in fact it may even be too much. I just need the name and body. Don't
need id, timesamps, or shop_id

On Jun 4, 2013, at 12:09 PM, Kevin McPhillips <notifications@github.com>
wrote:

In app/controllers/print_templates_controller.rb:

> @@ -93,4 +94,21 @@ def rollback_template
>        page << "$('#template_editor').val(#{@tmpl.body.inspect});"
>      end
>    end
> +
> +  def export
> +    if params[:shop].present? && shop = Shop.find_by_url(params[:shop])
> +      render :xml => shop.templates

Does the default to_xml give you everything you need? A template doesn't
have associated objects you care about? I guess this is only going to be
used in one place for one thing.

—
Reply to this email directly or view it on
GitHub<https://github.com/Shopify/pixelprinter/pull/10/files#r4526243>
.