a) You can use it for a number of files
b) You can use it in  the main page view & in the views for several
view components, and if they all include the same file, it will be
included only once.
c) used as a block component, you can also include snippet of script,
and again, the same snippets are included only once.
d) It can be configured to use Google's JS library CDN.
-- 
Truth,
    James

On Thu, Feb 19, 2009 at 4:45 PM, Ricardo Lopes <[email protected]> wrote:
> What about CaptureFor ?
>
> 2009/2/19 James Curran <[email protected]>
>>
>> This is one of the reason I create the InsertJavascript ViewComponent
>> (In CastleContrib)
>>
>> In you layout, you'd say
>>
>> #component(InsertJavascript)
>>
>> In your view, you'd say
>>
>> #component(Javascript with "file=index.js")
>>
>>

--~--~---------~--~----~------------~-------~--~----~
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