ãã®è¨äºã¯2013å¹´6æ21æ¥ã«atsuyaã«ãã£ã¦Coiney Developer Blogã«æ¸ãããè¨äºã®è»¢è¼ã§ãã æè¿ã¯è²ã é åçãªããã°ãµã¼ãã¹ã沢山ããã¾ãããèªåã®æ¸ããè¨äºãæå ã«ãã¡ã¤ã«ã¨ãã¦æ®ãã®ã¯å¬ããäºã§ãããã®ããã°ã¯ãmiddleman (ã¨middleman-blog) ã使ã£ã¦ä½æããè¨äºãå«ãã å ¨ã¦ã®ãã¼ã¿ãgithubã§ç®¡çãã¦ãã¾ããmiddlemanã¯ãæçµçã«htmlãã¡ã¤ã«ãåºåããã®ã§ããããã®htmlãã¡ã¤ã«ãå ¬éãããå ´åã¯ãã©ããã§ãã¹ãããå¿ è¦ãããã¾ããæ¢ã«githubã使ã£ã¦ãã¼ã¿ã管çãã¦ããã®ã§ãããã§ã¯githubã§middlemanã§ä½æããããã°ããã¹ãããæ¹æ³ã解説ãã¾ãã github pages githubã«ã¯ãgithub pagesã¨ãããéçãªã³ã³ãã³ãããã¹ãåºæ¥ãæ©è½ãããã¾ããgithubã®ã¦ã¼ã¶ãor
2013-10-16â middleman æ¬ãµã¤ãã§ä½¿ç¨ãã¦ãã middleman ã®ä¸»ãªè¨å®ããç´¹ä»ãã¾ãã Gemfile # If you have OpenSSL installed, we recommend updating # the following line to use "https" source 'http://rubygems.org' gem "middleman", "~> 3.1.5" gem "middleman-blog", "~> 3.3.0" gem "middleman-livereload", "~> 3.1.0" gem "middleman-deploy" gem "middleman-rouge" gem "nokogiri" gem 'redcarpet' # For feed.xml.builder gem "builder",
middlemanã¨ãããã®ããéçãªãµã¤ã(html/css/jsã ãã®ãµã¤ã)ãä½ãã®ã«ãããªã¼ã便å©ã§ã (ããã使ã£ã¦æ§çãªãµã¤ããä½ãã¾ãã) ä½ã便å©ãã¨ãã㨠éçºç¨ãµã¼ãã¼ã«ãªã ãã³ãã¬ã¼ãã¨ã³ã¸ã³(erb) coffee scriptãscssãªã©ãèªåã§å¤æ ãã¡ããã³ã³ãã¤ã«ãã§ãã ç»åã®å§ç¸®ã¨ããã§ããã¿ãã ãªã©ãªã©ãã¤ã¡ã¼ã¸ã¨ãã¦ã¯ãRuby on Railsãããã¦ã§ãã¢ããªçæ©è½ãæãããã®ã¨ãããã éçãªãµã¤ãç¨ã®æ©è½ãæãåºãããã®ã¨ãããããã£ããã¨ãã³ãã¬ã¼ãã¨ã³ã¸ã³ã¿ãããªæã(æ£ç¢ºã«ã¯Sinatraã¨è¨ã£ãã»ããããã®ã ãã©)ã ããããã«ãcoffee scriptã¨ãsass使ããªãè¶ ä¾¿å©ãï¼ã¿ãããªæãã éçãªãµã¤ãã対象ã¨ãã¦ããã®ã§ãåºæ¬çã«ã¯Rubyã®ããã°ã©ãã¼ã§ããå¿ è¦ã¯ãªãã§ãã åºæ¬çã«ã¯ 404 Not Found
æ¨ä»ã®éçºã§ã¯HTMLããã®ã¾ã¾è¨è¿°ããã®ã§ã¯ãªããç°¡æ½ã«è¨è¿°ããçºã®ãã³ãã¬ã¼ãã¨ã³ã¸ã³ãå©ç¨ãããã¨ãå¤ãã¨æãã¾ããä»åã¯Hamlã¨Slimã¨ãããã³ãã¬ã¼ãã¨ã³ã¸ã³ããMiddlemanã¨ããéçºãµã¼ãã¼ãã¼ã«ãå©ç¨ãã¦æ¯è¼ãã¦ããã¾ãã Hamlã¨Slimã¨ã¯ï¼ Haml 㨠Slim ã¯HTMLãçæããããã®ãã³ãã¬ã¼ãã¨ã³ã¸ã³ã§ãã HTMLããã®ã¾ã¾è¨è¿°ããã®ã¨æ¯ã¹ãã¤ã³ãã³ããç°¡ç¥æ§æã«ãã£ã¦ç°¡æ½ãªè¨è¿°ãè¡ããã®ãç¹å¾´ã§ãã Hamlã¯Ruby On Railsãªã©ã®ããã¸ã§ã¯ãã§å©ç¨ãã¦ããæ¹ãå¤ãã¨æãã¾ãããSlimã¯èããªããªãæ¹ãããã®ã§ã¯ãªãã§ããããï¼ â»Ruby On Railsã§å©ç¨ããã«ã¯ããããã haml-rails ã slim-rails ã¨ããgemã追å ããå¿ è¦ãããã¾ã 以ä¸ã§Hamlã¨Slimã«ã¤ãã¦ããµã³ãã«ã³ã¼ããç¨ãã¦æ¯è¼ã
Iâm going to make a bold statement â static sites are cool. Jekyll has been one of the libraries at the core of this movement, which has given rise to static site generators made in nearly every language you can think of. Static websites have the benefit of simplicity; they donât need complex server-side technologies to host, they just need something that can serve HTML. The purpose of any static
ãã¼ã > html | Ruby > ããmiddlemanã§ã§ãããï¼ -Sinatra(ããã¼ã¹ã«ãããã¼ã«)ã¨Slimã¨Sassã¨CoffeeScriptã§ã¢ãã³ãªWebå¶ä½ç°å¢ãæ§ç¯ãã- å¤ã ããmiddlemanã§ã§ãããï¼ -Sinatra(ããã¼ã¹ã«ãããã¼ã«)ã¨Slimã¨Sassã¨CoffeeScriptã§ã¢ãã³ãªWebå¶ä½ç°å¢ãæ§ç¯ãã- ããå ¨é¨middlemanã§ã§ãããï¼ ã¨æã£ãã®ã§æ¸ãã¦ã¿ãã Sinatraã¨Hamlã¨Scssã¨CoffeeScriptã§ã¢ãã³ãªWebå¶ä½ç°å¢ãæ§ç¯ãã #1 ï½ ã¯ã©ã¹ã¡ã½ããéçºããã° Sinatraã¨Hamlã¨Scssã¨CoffeeScriptã§ã¢ãã³ãªWebå¶ä½ç°å¢ãæ§ç¯ãã #2 ï½ ã¯ã©ã¹ã¡ã½ããéçºããã° Middlemanã¨ã¯? Middleman: Hand-crafted frontend develo
å æ¥ Middleman ã使ã£ã¦ sapporojs.org ããªãã¥ã¼ã¢ã«ãã¾ããã ãã®éã«å¾ããã Middleman ã§ã® web ãµã¤ãéç¨ã®ç¥è¦ããç´¹ä»ãã¾ãã Middleman ã£ã¦?? ç°¡åã«èª¬æããã¨ãéç web ãµã¤ãã¸ã§ãã¬ã¼ã¿ã§ãã Jekyll ããåç¥ã®æ¹ã§ããã°ãä¼¼ããããªãã®ãã¤ã¡ã¼ã¸ãã¦ããã ããã¨ããããã§ãã Middleman ã®æ¹ãåªãã¦ããç¹ã¯ã Asset Pipeline ã Template Helpers ãªã©ã®ä¾¿å©ãªæ©è½ãå©ç¨ããããã¨ãã§ãããã¨ã§ãã http://middlemanapp.com/ éã« Jekyll ã®æ¹ãæå©ãªç¹ã¨ãã¦ã¯ã GitHub pages ã使ãããããããã¤ã楽ã§ããã¨ããç¹ãããã¾ãã ããã§ä»åã¯ã Jekyll ã¨åãã Middleman ã GitHub pages ã«ç°¡åã«ãããã¤
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}