brail

How to use multiple view engines in ASP.NET MVC application

Hi, I'd like to use two view engines in my asp.net mvc web application. The first one is the Brail view engine from MVCContrib project, and another one is my custom view engine for generating javascript code. However, I can't configure the application to use both engines. I'd like to use view file extension to discern which engine should...

How to use Brail as a stand-alone general purpose templating engine (like NVelocity)?

Hi, I've been using NVelocity as a stand-alone templating engine in my text file generator. The problem with NVelocity is that the macros are quite shaky; pretty much all errors I get are from faulty macro implementation. It would be cool if I could just use some other templating engine, such as Brail. That way I would just write funct...

.NET Hashtable - "Same" key, different hashes

Is it possible for two .net strings to have different hashes? I have a Hashtable with amongst others the key "path". When I loop through the elements in the table to print it, i can see that the key exists. When trying to looking it up however, there is no matching element. Debugging suggests that the string I'm looking for has a differ...

Brail FormHelper.Select Syntax

This should be really simple, and the brail syntax drives me crazy: ${FormHelper.Select("user.AuthLevel", $FormHelper.EnumToPairs($Roles), $DictHelper.Create("value=First", "text=Second"))} What's the brail syntax for this? I've tried loads of variations (and I realise the other FormHelper's should be enclosed in curly braces) but ca...

Using variables in translation strings with Brail

Hi, I'd like to build a localised web app with MonoRail and Brail. http://www.castleproject.org/monorail/documentation/trunk/usersguide/... describes how to translate basic strings, and I can do that. However I'm struggling with translation strings containing variables like: Welcome ${user} This renders Welcome ${user} instead of ...

How to set focus to a textbox that was just inserting it into my page?

I have a dynamic web page that after clicking a link, I insert a partial view into my page using brailjs action. My brailjs view looks like this page.inserthtml('bottom', 'items', { @partial: 'item/_fields_replacement_part' }) page.replacehtml('add_item_link', { @partial: 'item/_addlink_replacement_part' }) After I insert the html, I...