-
Notifications
You must be signed in to change notification settings - Fork 0
/
middleman.jade
52 lines (43 loc) · 1.73 KB
/
middleman.jade
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
include ./shared/slide_mixins
+slideGroup
+bigTitleSlide("MIDDLEMAN")
:markdown
#### What do we need?
- Ruby - Runtime Environment
- Middleman Gem - A library managed by the ruby gems dependency manager (Think App Store)
- Sublime Text OR Atom - Somewhere to place beautiful code
- Web browser ( >IE9 )
+bigTitleSlide("Getting Started")
:markdown
- `gem install middleman`
- `middleman init learn-middleman`
- `cd learn-middleman`
- `middleman server`
- Open your browser to __[http://localhost:4567](http://localhost:4567)__
+speakerNotes
:markdown
- downloads and installes the middleman App
- creates a new middleman project in the folder __learn-middleman__
- change our working directory to our new project
- start the middleman server so we can see our new site
- see it in the browser
+bigTitleSlide("Important Items")
:markdown
- `config.rb`
- `layouts/`
- Assets `javascripts`, `stylesheets`, `images`
+speakerNotes
:markdown
- Main configuration file and bootstrap script for middleman
- Markup templates that other pages will inherit
- Folders for normal assets that will be included in the asset pipeline
+bigTitleSlide("config.rb")
include:markdown code/config_rb.md
+bigTitleSlide("layouts")
:markdown
#### Whats this .erb thing!
Ruby has a natural templating engine called erb designed to be very similar to HTML. But Haml works out of the box and they can coexist.
Take note __<%= yield %>__
+speakerNotes
:markdown
yield is what makes this a layout wherever yield is invoked the content of your page will be inserted.