Skip to content

Commit fa6da2c

Browse files
committed
vanilla middleman (2) template
1 parent e7ad3aa commit fa6da2c

File tree

5 files changed

+120
-0
lines changed

5 files changed

+120
-0
lines changed

config.rb

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
###
2+
# Compass
3+
###
4+
5+
# Susy grids in Compass
6+
# First: gem install compass-susy-plugin
7+
# require 'susy'
8+
9+
# Change Compass configuration
10+
# compass_config do |config|
11+
# config.output_style = :compact
12+
# end
13+
14+
###
15+
# Haml
16+
###
17+
18+
# CodeRay syntax highlighting in Haml
19+
# First: gem install haml-coderay
20+
# require 'haml-coderay'
21+
22+
# CoffeeScript filters in Haml
23+
# First: gem install coffee-filter
24+
# require 'coffee-filter'
25+
26+
# Automatic image dimensions on image_tag helper
27+
# activate :automatic_image_sizes
28+
29+
###
30+
# Page command
31+
###
32+
33+
# Per-page layout changes:
34+
#
35+
# With no layout
36+
# page "/path/to/file.html", :layout => false
37+
#
38+
# With alternative layout
39+
# page "/path/to/file.html", :layout => :otherlayout
40+
#
41+
# A path which all have the same layout
42+
# with_layout :admin do
43+
# page "/admin/*"
44+
# end
45+
46+
# Proxy (fake) files
47+
# page "/this-page-has-no-template.html", :proxy => "/template-file.html" do
48+
# @which_fake_page = "Rendering a fake page with a variable"
49+
# end
50+
51+
###
52+
# Helpers
53+
###
54+
55+
# Methods defined in the helpers block are available in templates
56+
# helpers do
57+
# def some_helper
58+
# "Helping"
59+
# end
60+
# end
61+
62+
# Change the CSS directory
63+
# set :css_dir, "alternative_css_directory"
64+
65+
# Change the JS directory
66+
# set :js_dir, "alternative_js_directory"
67+
68+
# Change the images directory
69+
# set :images_dir, "alternative_image_directory"
70+
71+
# Build-specific configuration
72+
configure :build do
73+
# For example, change the Compass output style for deployment
74+
# activate :minify_css
75+
76+
# Minify Javascript on build
77+
# activate :minify_javascript
78+
79+
# Enable cache buster
80+
# activate :cache_buster
81+
82+
# Use relative URLs
83+
# activate :relative_assets
84+
85+
# Compress PNGs after build
86+
# First: gem install middleman-smusher
87+
# require "middleman-smusher"
88+
# activate :smusher
89+
90+
# Or use a different image path
91+
# set :http_path, "/Content/images/"
92+
end

config.ru

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
require 'rubygems'
2+
require 'middleman'
3+
4+
run Middleman.server

source/index.html.erb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<% content_for :head do %>
2+
<title>The Middleman!</title>
3+
<% end%>
4+
5+
<h1>The Middleman is watching.</h1>

source/layout.erb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
6+
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
7+
8+
<%= stylesheet_link_tag "site.css" %>
9+
<%= yield_content :head %>
10+
</head>
11+
12+
<body class="<%= page_classes %>">
13+
14+
<section id="main" role="main">
15+
<%= yield %>
16+
</section>
17+
18+
</body>
19+
</html>

source/stylesheets/site.css.scss

Whitespace-only changes.

0 commit comments

Comments
 (0)