# File lib/openshift-origin-controller/app/controllers/application_templates_controller.rb, line 11
  def show
    id_or_tag = params[:id]
    template = ApplicationTemplate.find(id_or_tag)
    return render_success(:ok, "application_template", RestApplicationTemplate.new(template, get_url, nolinks),
                          "SHOW_TEMPLATE", "Showing template for '#{id_or_tag}'") if template

    templates = ApplicationTemplate.find_all(id_or_tag).map{|t| RestApplicationTemplate.new(t, get_url, nolinks)}
    render_success(:ok, "application_templates", templates, "LIST_TEMPLATES",  "Showing template for '#{id_or_tag}'")
  end