April 2009
13 posts
Geek pickup line - “I left a tag open so I can’t get your out of my...
– Thomas Hardy (thomasjhardy) on Twitter
links: Javascript template engines
HAML - http://four.livejournal.com/820601.html http://github.com/creationix/haml-js/tree/master
Patroon - http://github.com/georgi/patroon/tree/master
http://www.matthias-georgi.de/2008/9/patroon-a-javascript-template-engine-part-2
http://code.google.com/p/embeddedjavascript/
http://code.google.com/p/trimpath/wiki/JavaScriptTemplates
...
Задача бессмысленная и сложная, как решать непонятно…
Уходим!
...
– Loglablog: Статус
links: Custom rails template engines
http://rcss.rubyforge.org/
http://radius.rubyforge.org/
http://github.com/nex3/haml/tree/master
http://github.com/jbarnette/johnson/tree/master
http://erector.rubyforge.org/
http://www.slideshare.net/err/goruco
http://beautifulpixel.com/2007/1/11/how-to-write-a-rails-template-handler
Blogging combo
Tumblr + Disqus + Gists ± Vimeo
2 tags
Проблема с to_json
Всем хорош, но нельзя ему в methods передать параметры для конкретного метода.
Надо как-то решить проблему.
Варианты:
делать OpenStruct-ы полуавтоматически, и их уже конвертить в json
подхачить рельсовый json serializer и добавить туда необходимый функционал.
Хотим что-то такое:
Вот что в итоге получилось: Патч к serialization.rb
Вполне работает:
Правда работает очень хрупко....
Web development combo
Ruby on Rails/Sinatra + JSON output + HAML/SASS + jQuery + self-written jQuery micro-plugins + base2 + Taffy DB + jsRepeater
Недостающие звенья:
умная отдавалка JSON-а
подчищалка за jsRepeater
plain rails backtrace for ajax calls
move json generation to view somehow
«За продолжение подписки придется платить немалые деньги, либо остаться на нашем...
– К концу 2009 года все школы Татарстана перейдут на «Linux»