Then yeah
you'll need to use the if IsDefined function.
also if the page still dies try
<%if IsDefined("javascript"):
output javascript
end %>
On Oct 17, 3:34 pm, "Martin Nilsson" <[EMAIL PROTECTED]> wrote:
> Thanks for your answer Paul! I'm using the trunk.
>
> On Fri, Oct 17, 2008 at 3:53 PM, PKetelle <[EMAIL PROTECTED]> wrote:
>
> > are you using the trunk or RC3 of the castle project ?
>
> > I found in RC3
>
> > ${?javacscript}
>
> > works, however in the trunk it does not.
> > But this does
>
> > <%if IsDefined("javascript"):%>
> > ${javacscript}
> > <%end %>
>
> > I do feel there should be a better way but this might work for now.
>
> > On Oct 15, 9:27 am, "Martin Nilsson" <[EMAIL PROTECTED]> wrote:
> > > using brail view engine
> > > in some, not all, of my views I have
>
> > > <% component CaptureFor, {"id": "javascript"}: %>
> > > <script>
> > > //code
> > > </script>
> > > <% end %>
>
> > > in default.brail I have
>
> > > <html xmlns="http://www.w3.org/1999/xhtml">
> > > <head>
> > > ....
> > > ${javascript}
>
> > > When I'm accessing views that don't have "component CaptureFor" I get
> > > "Parameter 'javascript' was not found!"
>
> > > Also tried with ${?javascript} but that generates "Parser Error"
>
> > > Anyone that can tell me how to handle this for views that have no
> > > CaptureFor?
>
> > > Cheers
> > > Martin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---