Chorn Sokun's Weblog

Conquer inner fear, push it to the limit!

Brail Daily Use Macros

with one comment

If you are DRY then try these macros in your *.brail

<% OutputSubView("_list") %>

Passing some variable to sub-view

<% OutputSubView("_list", {@students: studentList}) %>

but if you work with *.brailjs then you would love

Page.ReplaceHtml("#domElementId", {@Partial: '_list'})

Why do I choose brail?

  • it compile => performance gain
  • easy to create additional template processing macros
  • it just Boo !

until next time.

Advertisements

Written by Chorn Sokun

March 10, 2009 at 10:22 am

Posted in Castle, Tips & Tricks

Tagged with

One Response

Subscribe to comments with RSS.

  1. Thanks for this code.
    Well, brail has used all boo fuctions that is easy to create and manage templates in a web app.

    N. Vitou

    March 14, 2009 at 2:17 pm


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: