Spark partials from shared locations in bottles

44 views
Skip to first unread message

Bob Pace

unread,
Nov 13, 2012, 4:48:46 PM11/13/12
to fubumv...@googlegroups.com

I just submitted this pull request to enhance the capability of the FubuMVC.Spark bottle to allow _partial files to be locatable in other packages based on dependencies set up in the SharingGraph.

Example:

GlobalPackage
Package1

with a view.config in GlobalPackage "export to all" which sets up a dependency between Package1 and GlobalPackage

If a view in Package1 references a _partial from any shared folder location in the GlobalPackage it can now be found and rendered.

This ups the spark version to 1.7.5.0 to include the new hook for providing your own IPartialProvider, for which there is a FubuPartialProvider implementation.

Corey Kaylor

unread,
Nov 13, 2012, 5:13:21 PM11/13/12
to fubumv...@googlegroups.com
To add some additional context around the why behind this.

It helps enable a clear migration path from aspnet mvc and keeps aspmvc / fubumvc views separated.
It also makes it easier to do "theme" bottles.

--
You received this message because you are subscribed to the Google Groups "FubuMVC Development Group" group.
To view this discussion on the web visit https://groups.google.com/d/msg/fubumvc-devel/-/VN4APtKV2ncJ.
To post to this group, send email to fubumv...@googlegroups.com.
To unsubscribe from this group, send email to fubumvc-deve...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fubumvc-devel?hl=en.

Corey Kaylor

unread,
Nov 13, 2012, 8:36:15 PM11/13/12
to fubumv...@googlegroups.com
This has been pulled in.
Reply all
Reply to author
Forward
0 new messages