Discussion Group
Re: Dynamically set the view base type for a partial view?
I think partials don't translate to classes, they just get injected
into the views.
I'm not sure about this, but you can check in Spark source code ;).
I'd like to do something like that in the future (for a CMS) so I'm
also interested by that issue.
Guillaume
Dynamically set the view base type for a partial view?
Is it possible to dynamically set the view base type for a partial
view?
I'm doing a lot of dynamic page generation, using custom IViewFolder
and IViewFile implementations, and need to set a specific base type
for certain views...it's not a problem injecting the correct block, I
just need to know what block to inject.
Newbie question about re-compiling views
I'm using spark with Asp.NET MVC on Mono on Linux, and everything
seems to be installed and working great!
However, I notice that I need to re-compile my application to see
changes reflected in the page. This is fine but it kindof hampers
productivity. If there is a way that I can trigger a re-load from
RE: Loading Spark Views in Area MVC 2.0
Sent: Saturday, July 10, 2010 12:09 PM
To: spark-dev@googlegroups.com
I presume you've created a fork of the main repo and can push your changes up?
RE: Loading Spark Views in Area MVC 2.0
Sent from my Verizon Wireless Phone
-----Original Message-----
Sent: Saturday, July 10, 2010 12:08 PM
To: spark-dev@googlegroups.com
I presume you've created a fork of the main repo and can push your changes up?
Adam - have you perhaps done that?
Re: Loading Spark Views in Area MVC 2.0
up?
Adam - have you perhaps done that?
If so, you can do a pull request from github to have them merged in as a
patch by Louis (or one of the main commiters).
If not, you can email me the changed files (and full paths) and I'll merge
Re: Loading Spark Views in Area MVC 2.0
areas path in the default AreaDescriptorFilter class in the project. Rob, I
made the changes in the source and tested it with areas and runs just fine (
I still need to run test cases though, they dont seems to be loading in my
Re: Loading Spark Views in Area MVC 2.0
in my global.asax.cs on app start.
This will add register the view engine with Asp.net MVC as well.
*Please not that this is the code for Asp.net MVC 2.*
public static class SparkConfiguration
{
public static void Configure()
Re: Loading Spark Views in Area MVC 2.0
Adam
Re: Loading Spark Views in Area MVC 2.0
Sounds like you're almost already there with a fix. Why not put the code in
place, and test your areas. If that works, and you run the comprehensive
suite of tests in the source tree and nothing breaks unexpectedly, then I'm
pretty sure a pull request to the main repo will get accepted and rolled
Re: Loading Spark Views in Area MVC 2.0
Re: Loading Spark Views in Area MVC 2.0
~/Views/Product/Home/Index.spa rk. Since this view is actually located at
(~/Areas/Product/Views/Home/In dex.spark), it is unable to find this view and
therefore goes to parent ~/Views/Home/Index.spark by default. One way to
solve would be create VirtualPathProvider for every file request starting
Loading Spark Views in Area MVC 2.0
I am working on a MVC 2.0 application in which I have an area named Product.
Both the root and the product area defaults the request to Home controller
and Index view. When I hit the root of the application it correctly displays
the view located at the root ~/Views/Home/Index.spark. However, when I hit
Re: Content Element Order
content="nested_styles" />) and to use it from view instead of
recalling <content name="styles"> ?
Re: Content Element Order
view. In the case of just including css, I have:
Admin.spark (the base master for all admin tools) which has:
<link rel="stylesheet" type="text/css" href="/css/admin.css"/>
<use content="styles"/>
Tickers.spark (nested master for all ticker admin views) which has:
Re: SparkView and JQuery-tmpl
literal end. No?
For me the minimalistic way is to have only one escape sequence ##
which means "Don't process ${} in this line"...
Re: Content Element Order
- html.spark is a master page (layout) and there is content definition
<use content="head" />
- Application.spark and View.spark are two views, they both have <use
master="html" />. Normally, different views correspond to different
actions and cannot co-exist on the page. You found a way to combine
Re: Created Issue: JavaScriptView works slightly difference [6462]
to use $!{Product.Barcode} since it may be null. Hopefully that will
fixed the Javascript result, but I can't say for sure.
From [link] :
"The syntax $!{expression} can also be used if you want to ensure any
Re: Visual Studio intellisense
starting on a new web project now, and I'm going to try out spark with
vs 2010. Hopefully it won't be too painfull.
Henning
