Skip to content

Instantly share code, notes, and snippets.

View huacnlee's full-sized avatar

Jason Lee huacnlee

View GitHub Profile
@huacnlee
huacnlee / ruby_templet_benchmark.rb
Created October 26, 2011 01:37 — forked from biti/haml_vs_erb_vs_erubis.rb
erb,erubis,slim,haml的性能比较.结果:haml不靠谱
# encoding: utf-8
require 'rubygems'
require 'haml'
require 'erb'
require 'erubis'
require "slim"
notes = []
20.times { notes << {:title => "标题标题", :content => "内容,内容"} }
require "thor/shell"
say("Modifying a new Rails app ...", :yellow)
#----------------------------------------------------------------------------
# Configure
#----------------------------------------------------------------------------
=begin
unless options[:database] == 'sqlite3'
username = ask("What's your database username[root]")
username = 'root' if username.blank?
/*
project: http://github.com/livid/v2ex
file: http://github.com/livid/v2ex/blob/master/static/css/desktop/style.css
*/
#Navigation {
float: right;
text-align: right;
font-size: 14px;
color: #fff;
margin-top: 14px;