You can't, unfortunately.
Common Scripts are just plain boo files, no brail magic.
You can access that from the HttpContext, I assume.


On Wed, Oct 1, 2008 at 11:44 AM, Gabriel Schenker <[EMAIL PROTECTED]>wrote:

>
> I try to write a common script in brail and want to access the
> siteRoot parameter.
> But the compiler tells me, that it is not found...
>
> my definition of the script is
>
> def statusImage(status, title):
>  return "<img src='${siteRoot}/images/status_${status}.png' alt='$
> {title}' title='${title}' />"
> end
>
> the exception is:
>
> Exception Details: Castle.MonoRail.Framework.MonoRailException:
> CommonScripts\statusImage.brail(1,1): BCE0005:
> Boo.Lang.Compiler.CompilerError: Unknown identifier: 'siteRoot'.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to