Have not done much Active4D work in the last few months but I thought I'd share something - if anyone is interested.
Since a project I was working on got delayed until next year (or maybe never), I've been playing with RoR and Ruby. I re-wrote my golf score management site in the Rails3 beta version and de-PHP'd the site. I wanted to add a little blog to the site and in my search for a blog plug-in I ran across a couple of interesting things. Jekyll - Jekyll is a simple, blog aware, static site generator. It takes a template directory (representing the raw form of a website), runs it through Textile or Markdown and Liquid converters, and spits out a complete, static website suitable for serving with Apache or your favorite web server. This is also the engine behind GitHub Pages, which you can use to host your project’s page or blog right here from GitHub. <http://jekyllrb.com/> Ultraviolet - Ultraviolet is a syntax highlighting engine based on Textpow. Since it uses Textmate syntax files, it offers out of the box syntax highlighting for more than 50 languages and 20 themes. <http://ultraviolet.rubyforge.org/> Active4D is one of the languages supported by Ultraviolet. Well I wedged Ultraviolet into Jekyll and had to put up a blog. One of my topics is "Active4D" so I thought I'd share a post about passing optional parameters to an Active4D method using collections, including some helpers. I wrote the post to help test the plugin I wrote for Jekyll. <http://iwishicouldwrite.com/blog/2010/07/20/Optional-arguments/> The bog site is still under construction and may never go beyond where it is now - as the domain name suggest, my writing skills got left behind in my youth. If you are interest on how: $heredoc := ''' :onclick := "x = setme(this); $(x).value = fixme(x); return false;"; :size := 50; :class := :pink; :readonly => true ''' writebr( form_tag("text";"readonly";"This is a readonly field";opt($heredoc)) ) produces: <input type="text" name="readonly" value="This is a readonly field" id="readonly" class="pink" onclick="x = setme(this); $(x).value = fixme(x); return false;" readonly="True" size="50" /> Go take a look at the post. Steve _______________________________________________ Active4D-dev mailing list [email protected] http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
