Sinatraã§ãã¡ã¤ã«ã®ã¢ãããã¼ããããå ´åãRackã®paramsã使ã£ã¦è¡ãã¿ããã Sinatra 1.1.xã§Slim ã¾ããSinatraã§ãã³ãã¬ã¼ãã¨ã³ã¸ã³ã«Slimã使ãããå ´åã¯ãSinatra 1.2ã¾ã§å¾ ã¤ãã以ä¸ã®è¨äºãåèã«ã¢ã¸ã¥ã¼ã«ãåãªã¼ãã³ãã¦ã¢ã³ãã¼ãããã³ã°ããã¨ä½¿ããããã«ãªãã¿ããã Hamlã¨ãããã¦å¤ãããªãSlim - komagata ï¼»p0tï¼½ # Sinatra 1.1.x 以å㧠Slim ã使ã module Sinatra module Templates def slim(template, options={}, locals={}) render :slim, template, options, locals end end end Slim::Engine.set_default_options :pretty =>
{{#tags}}- {{label}}
{{/tags}}