Sinatra is a DSL for quickly creating web applications in Ruby with minimal effort: require 'sinatra' get '/frank-says' do 'Put this in your pipe & smoke it!' end
ãã¤ã®æ代ãããé«éã«åä½ãããã¬ã¼ã ã¯ã¼ã¯ãè¨èªã«å¯¾ããé¢å¿ã¯é«ããã®ã§ããããããªçåã«çããWeb Framework Benchmarksã®ææ°çãå ¬éããã¦ãã¾ãããã¡ãã®ãã³ããã¼ã¯ã¯ãã¹ãç¨ã®ã³ã¼ããç°å¢ããªã¼ãã³ã½ã¼ã¹ã«ãªã£ã¦ãã16ã®è¨èª(C C# Clojure D Erlang Go Groovy Haskell Java JavaScript Lua Perl PHP Python Ruby Scala)ã¨57ã®ãã¬ã¼ã ã¯ã¼ã¯ã«ã¤ãã¦æé©ãªå®è£ ãéãããã¦ãã¹ãããã¦ããã¨ããç¹ã§ä¸è¬æ§ãããã¾ããã¾ãå®è¡ç°å¢ãEC2ã¨å®ãã·ã³ã®2種é¡ãããããå®è¡ãã¦ããç¹ãèå³æ·±ãã§ãã æ°ã«ãªããã¹ãçµæã®ãã¡ç¹ã«è¤é度ã®é«ããã¼ã¿ãã¼ã¹ããè¤æ°ä»¶ã®ãã¼ã¿ãåå¾ãã¦HTMLãã¼ã¸ã¨ãã¦åºåããå ´åã®çµæã¯ä¸è¨ã®ã¨ããã§ãã å ã ã®ãããã«è¼ãã¦ããã®ã¯Servletã§æ大ã§1
gem install padrino padrino g project test_app -d datamapper -b cd test_app padrino g admin padrino rake dm:migrate seed padrino start Sinatra Core Many people love the simplicity and expressiveness of Sinatra but quickly find themselves missing a great deal of functionality provided by other web frameworks such as Rails when building non-trivial applications. Sinatra acts as a thin layer on top o
https://github.com/tokuhirom/micro_dispatcher.js javascript ç¨ã®ã·ã³ãã«ãª Dispatcher ã«ã¯ããã¤ãããããã©ããæºè¶³ããã·ã³ãã«ãªå®è£ ããªãã£ãã®ã§ã¤ãã£ã(ã¨ããã Caym ã¨ãããªã¬ãªã¬ JS Framework ã®ä¸ã«ãã¾ã£ã¦ãããã®ãã¨ãã ãã)ã ç¹å¾´ã¨ãã¦ã¯ã Dispatcher ã ãã®ã·ã³ãã«ãªå®è£ (æ¬ä½ã¯ããåé·ã«ããã¦ãã¦ã40è¡ç¨åº¦)sinatra çãªã·ã³ãã«ãªè¨æ³ã¨ãã£ãã¨ããã§ããããã 使ãæ¹ã¯ä»¥ä¸ã®ã¨ããã var dispatcher = new MicroDispatcher() dispatcher.register('/', function () { }) dispatcher.register('/member/:name', function (name) { alert
ã©ãããéæµæ§é£éçã§ãã2æåãã«èçã§ç é¢ã«è¡ããç¿æ¥ã®èã«ã¡ã©ã§è¨ºæããã¾ãããã¹ãã¬ã¹ç¤¾ä¼ã«çããçæ§ããèè ¸ã®å¥åº·ã«ã¯åäºåã«ãçæãã ããããããããããããããã è¬ç©ã®å¹è½ã«ãããã®ãçç¶ã¯ã ãã¶ç·©åããã¦ããã®ã§ãããæã«ã¯ç ããæ¥ãããã¾ãããããªèã®ç¶æ ãæãã¦ãããAPIãã¤ããã¾ããã http://marutanm-stomach.heroku.com/condition ç¨æã§ãããæããã¦ãããããæ©è½è¿½å ã¯ãªãããã®ã§ããããï¼ ã¶ã£ã¡ããç§ã®èã®ç¶æ ãªãã¦èª°ãç¥ã£ããã¨ãããªãã§ãããããPadrinoã¨MongoDBã使ã£ãç°¡åããããã¥ã¼ããªã¢ã«ã¨ãã¦ãæé ã追ã£ã¦ã¿ã¾ããURLã§ãåããã®ããã«ãæçµçã«ã¯Herokuã«ãããã¤ãã¾ãã åºæ¬çã«ã¯å ¬å¼ã«ãããã¥ã¼ããªã¢ã«ã®å£åçã§ãããActiveRecordã§ã¯ãªãMongoDBãORMã«Mon
Webãµã¤ããWebãµã¼ãã¹ãWebã¢ããªã±ã¼ã·ã§ã³ãRubyã§ä½æããããã®DSLããããSinatraã§ããæ¬æ¸ã¯ãåºæ¬çãªRubyã®ããã°ã©ãã³ã°ãç解ããããã°ã©ãããSinatraã使ãå§ããããã«å¿ è¦ãªç¥èãã³ã³ãã¯ãã«ã¾ã¨ããæ¸ç±ã§ããã«ã¼ãã£ã³ã°ããã¥ã¼ããã£ãã·ã¥ãªã©ã使ã£ãã¢ããªã±ã¼ã·ã§ã³ã®æ¸ãæ¹ãããå é¨æ§é ã®è§£èª¬ãããµãã¯ã©ã¹åãç¨ããModularã¹ã¿ã¤ã«ã®ã¢ããªã±ã¼ã·ã§ã³ã解説ãããã«ã¯ã«ã¹ã¿ã ããã°ã¨ã³ã¸ã³ãä¾ã«ãã¢ããªã±ã¼ã·ã§ã³æ§ç¯ã®å ¨ä½ãç´¹ä»ãã¾ãããªãæ¬æ¸ã¯Ebookã®ã¿ã®è²©å£²ã¨ãªãã¾ãã ã¯ããã« æ¬æ¸ã®å¯¾è±¡èªè æ¬æ¸ã®æ§æ åºç¤ ããã«è©³ãã å®è·µ æ¬æ¸ã®è¡¨è¨è¦ç´ ãµã³ãã«ã³ã¼ãã®å©ç¨ã«ã¤ã㦠ãååãå 1ç« æºåä½æ¥ Sinatraã®ç¹å¾´ ãã¬ã¼ã ã¯ã¼ã¯ãªã®ã MVCãå®è£ ããã®ã 誰ã使ç¨ããã®ã å®éã®ããã¸ã§ã¯ãã¯ã©ã®ãããªãã®ã åé¡ç¹ã¯
Sinatra ã¯Rubyã®è»½éã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã§ãã ã³ã³ã½ã¼ã«ã«åºåããã®ã§ã¯ãªãããã©ã¦ã¶ã«è¡¨ç¤ºãããã¨ã§ãã¡ãã£ã¨ããè¦æ ãã®ããã¢ããªã±ã¼ã·ã§ã³ãæ¸ãã®ã«åãã¦ãã¾ãã Top ã¤ã³ã¹ãã¼ã« ç°¡åãªä¾ (1) ç°¡åãªä¾ (2) HTMLã®ãã¼ã¸ãä½ã ããè¤éãªã¢ããªã®å ´å ã³ã³ãã£ã®ã¥ã¬ã¼ã·ã§ã³ ã»ãã·ã§ã³ ãã©ã¼ã ã¨postã¡ã½ãã ãã£ã«ã¿ ã¯ã©ã¹ã®æ§æ è¨å® ã³ãã³ã ãã¹ã Sinatra::Contrib Extensionã®ä½¿ç¨ Sinatra::Reloader Apacheã¨Sinatra (Passenger) Apacheã¨Sinatra (FastCGI) ã¤ã³ã¹ãã¼ã« ã¤ã³ã¹ãã¼ã«æ¹æ³ã¯ããããã®ã©ããã«è©³ããæ¸ãã¦ããã¾ãããgemã使ããããªæãã§ã¤ã³ã¹ãã¼ã«ã§ãã¾ãã $ sudo gem install sinatra ã¡ããã¨ã¤ã³ã¹ãã¼ã«
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}