Skip to content

Instantly share code, notes, and snippets.

@botanicus
Created March 31, 2009 12:52
Show Gist options
  • Save botanicus/88171 to your computer and use it in GitHub Desktop.
Save botanicus/88171 to your computer and use it in GitHub Desktop.
!!! 1.0 Strict
%html{html_attrs("cs")}
%head
%title= block("title", Shop.company.name)
%meta{"http-equiv" => "content-type", content: "text/html; charset=utf-8"}
%meta{"http-equiv" => "content-language", content: "cs"}
%meta{name: "description", content: block("description", Shop.company.description)}
%meta{name: "keywords", content: block("keywords", Shop.company.keywords)}
%meta{name: "author", content: Shop.company.name}
= pupu :blueprint, plugins: ["fancy-type"]
= pupu :squeezebox
= pupu :flash
= pupu :slider
= pupu :autocompleter, type: "request"
= pupu "form-defaults"
= pupu :mootools, more: true
/ Array.new is because it shouldn't return nil, otherwise we got exception from javascripts helper
= javascripts "application", *block("javascripts", Array.new)
= stylesheets *block("stylesheets", Array.new)
%body
.container
%h1
/ TODO request.host + request.port should be defined as method
%a{href: "http://#{request.host}:#{request.port}"}= "[ #{Shop.company.name} ]"
%h2.alt ... to nejlepší pro vaše auto
%hr
/ #msg-success.success= message[:success]
/ #msg-notice.notice= message[:notice]
/ #msg-error.error= message[:error]
%div.span-16
%div.span-14= block "content"
%div.span-4.last
%form{action: "/vyhledavani"}
%input#search{type: "text", name: "query", rel: "Vyhledávání"}
/ TODO: why this rel? Check JS, have no idea :)
%input{type: "submit"}
%br
%h3 Navigace
- block "navigation"
%div.span-8.last
%hr
== © #{copyright(2008)} #{Shop.company.name}
- extends "base.html"
- block "navigation" do
%ul
%li
%a{href: "/kontakt"} Kontakt
%li
%a{href: "/produkty"} Naše nabídka
- extends "eshop/base.html"
/ head
- block "title", "Nabídka našich produktů"
- block "description", ""
/ content
- block "content" do
%h1 Test
= partial "eshop/products/list"
= paginate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment