- What is Ruby
- Great tools for FED:
- Sass
- Haml
- Middleman
- Programming language
- Released 1995
- Yukihiro Matsumoto (Matz)
- Making programmers happy
- User experience focued
- Leads to productivity and fun
"Jimmy".reverse ➟ ymmiJ
hi
5.times { print "Odelay!" }
➟ Odelay!Odelay!Odelay!Odelay!Odelay!
Tools in the spirit of its philosophy
syntax within a programming language that is designed to
make things easier to read or to express.
5.times { print "Odelay!" }
↓
for (int i = 0; i < 5; i++) {
print "Odelay!";
}
"5.times" is native, simple & clean
- Ruby is fun! so should CSS be
- Variety of syntactic sugars for CSS
- Compiles to standard CSS
/* SCSS */
table {
td {
padding: 1em;
}
}
hi
/* CSS */
table td {
padding: 1em;
}
/* SCSS */
$blue: #0000FF;
a {
color: $blue;
}
hi
/* CSS */
a {
color: #0000FF;
}
- functions
- loops
- conditions
- ...
Developing with Sass is more powerful and clean.
Software that is designed to process web templates and content information to produce output web documents.
- Syntactic sugars for HTML
- Template Engine for Ruby on Rails
- "Markup should be beautiful"
#profile
.left.column
#date= print_date
#address= current_user.address
.right.column
#email= current_user.email
#bio= current_user.bio
hi
<div id="profile">
<div class="left column">
<div id="date"><%= print_date %></div>
<div id="address"><%= current_user.address %></div>
</div>
<div class="right column">
<div id="email"><%= current_user.email %></div>
<div id="bio"><%= current_user.bio %></div>
</div>
</div>
- command-line tool
- static websites
- modern tools
- Sass, Haml
- Templates, Layouts & Partials
- CoffeeScript, Compass
- Frontend Optimization,...
$ middleman init my_project
$ cd my_project
hi
$ middleman server
>> Listening on localhost:4567, CTRL+C to stop
and we can start using these great tools
- Why Ruby is awsome
- Sass
- Haml
- Middleman
- by Rotem Harel
- Presentation created with landslide
- Thank you!