Lo que todo programador debería saber sobre aritmética de punto flotante
at main 756 B view raw
1#!/usr/bin/env ruby 2 3# A few helpful tips about the Rules file: 4# 5# * The order of rules is important: for each item, only the first matching 6# rule is applied. 7# 8# * Item identifiers start and end with a slash (e.g. “/about/” for the file 9# “content/about.html”). To select all children, grandchildren, … of an 10# item, use the pattern “/about/*/”; “/about/*” will also select the parent, 11# because “*” matches zero or more characters. 12 13compile '*' do 14 case item[:extension] 15 when 'html' 16 filter :erb 17 filter :kramdown 18 layout 'default' 19 end 20end 21 22route '*' do 23 case item[:extension] 24 when 'html' 25 item.identifier + 'index.html' 26 else 27 item.identifier.chop + '.' + item[:extension] 28 end 29end 30 31layout '*', :erb