Discussion Group

Syndicate content
Development discussion and project notification for Spark view engine
Updated: 15 min 48 sec ago

Variable file name in render partial

Tue, 07/06/2010 - 16:58
When I try to do the following
<var file='String.format("{0}/{1}", "x","_test")' />
<render partial=file />
it does not render the partial view. Instead it outputs the following in
html response
<render partial=x/_test />
(which tell me that I am missing the double quotes around the file path).
However, when I hardcode the partial view file name in my spark view, i.e

Adding Spark Partial View dynamically

Tue, 07/06/2010 - 16:42
Hello,
This is my first time with Spark. I have two questions pertaining to add
Spark views:
[1] I am curious how can we add a partial spark view ( I am treating a
partial view as a user control ) to a page (another spark view) dynamically,
as opposed to adding if logic in spark file and deciding which control to

RE: Created Issue: Content within HTML conditional comments is ignored [6373]

Tue, 07/06/2010 - 15:22
Thanks. :)
There's another feature hidden in ~ that you can find buried in the docs for the config settings.
[link]
In the spark/pages/resources section you can change your production config to replace various ~/xxx prefixes with some alternate value. Putting content on cdn, for example. Works with ISparkSettings in code also.

RE: Created Issue: Content within HTML conditional comments is ignored [6373]

Mon, 07/05/2010 - 11:29
Yep, it will expand leading ~'s in the html attributes that are known to be uri values.
Sent: Wednesday, June 30, 2010 7:52 PM
To: spark-dev@googlegroups.com
Cc: sparkviewengine Issue Tracker Rss Feed
Will spark even replace "~" in a attribute??
I'm not sure that it would?
2010/7/1 Asbjørn Ulsberg <asbjo...@gmail.com<mailto:asb jo...@gmail.com>>

Re: Created Issue: Content within HTML conditional comments is ignored [6373]

Mon, 07/05/2010 - 10:25
Will spark even replace "~" in a attribute??
I'm not sure that it would?
2010/7/1 Asbjørn Ulsberg <asbjo...@gmail.com>

Re: Visual Studio intellisense

Mon, 07/05/2010 - 07:45
What's the state on the VS 2010 version?

Created Issue: Content within HTML conditional comments is ignored [6373]

Mon, 07/05/2010 - 07:45
What happens: When content is placed within an HTML conditional comment, it is not evaluated by Spark and instead output as a literal string.
What's expected: Content within an HTML conditional comment should be evaluated by Spark.

Example code to reproduce:
<!--[if IE 6]>
<link type="text/css" rel="stylesheet" media="screen" href="~/css/ie.6.css">

Areas in ASP.NET MVC 2

Sat, 07/03/2010 - 21:46
Hey folks,

I've not been able to configure spark to recognise areas in my asp.net
mvc 2 application.

Having perused [link]
I am unable to use the AddFilter() on my service object - the option
is simply not there.

Hopefully it is just a minor tweak that you can guys can help me with.

RE: Error - MVC Application tries to render .aspx, not .spark

Sat, 07/03/2010 - 19:56
Or try removing or renaming the aspx/ascx file - if you keep both you end up on relying on the order view engines appear in the collection. That could be more of a side effect of an implementation detail than an explicit part of how MVC is designed.
-----Original Message-----
Sent: Monday, June 28, 2010 1:56 PM

Re: Spark + MVC2 Validation

Sat, 07/03/2010 - 17:18
Currently, you have to use the C# syntax for both
Html.EnableClientValidation() and Html.BeginForm() to make it work.
However, I feel that Spark is in need of client validation support. What
would be quite neat is something like:
<form client-validation="true">
</form>
Where the 'client-validation' attribute is parsed by Spark and with it

Re: Error - MVC Application tries to render .aspx, not .spark

Sat, 07/03/2010 - 17:02
Use ViewEngines.Engines.Clear() to remove the default view engine before registering Spark.
Sent from my mobile

-----Original Message-----
Sender: spark-dev@googlegroups.com
To: Spark View Engine Dev<spark-dev@googlegroups.com >
Reply-To: spark-dev@googlegroups.com

Hello Christopher,

thanks for your help. Unfortunately, that didn't solve the problem. I

Re: Error - MVC Application tries to render .aspx, not .spark

Sat, 07/03/2010 - 17:02
If you want to write off spark because you think it's not mature
enough, that's your decision. However, be aware that there are plenty
of real world applications already using it quite successfully.
try registering your viewengine before your routes - that's how mine are setup.

Re: Error - MVC Application tries to render .aspx, not .spark

Sat, 07/03/2010 - 16:46
Hello Christopher,

thanks for your help. Unfortunately, that didn't solve the problem. I
will stop for now, maybe I will try Spark again in a few months when
it's more mature.

On 28 Jun., 01:49, Christopher Pelatari <christop...@bluefenix.net>
wrote:

Re: SparkView and JQuery-tmpl

Sat, 07/03/2010 - 02:01
I quite like {#...#}. I can't come up with any use cases that will break
it. :)
It would be nice if {#...#} could (whenever introducing a breaking change
is possible) replace <!-- --> as the default Spark comment mechanism as
well.
-Asbjørn

Re: Error - MVC Application tries to render .aspx, not .spark

Sat, 07/03/2010 - 01:29
Instead of ViewEngines.Engines.Add, try this:
SparkEngineStarter.RegisterVie wEngine(ViewEngines.Engines);

Error - MVC Application tries to render .aspx, not .spark

Fri, 07/02/2010 - 14:44
Hello,

I'm trying to set up my first MVC Application using Spark. But I can't
get it to work. For some reason, my Application still looks for .aspx
views to render, and ignores the .spark files. What am I doing wrong?
Here's how I set upthe Spark engine:

protected void Application_Start()

Re: Visual Studio intellisense

Fri, 07/02/2010 - 06:30
Yeah, it would be great if you could make a new build with the msi :)

Re: Contributors

Thu, 07/01/2010 - 14:41
Ah cool! Thanks John & Lou.
Sounds good to me. Let me know what/if I need to do anything.
Cheers,
Rob

RE: Contributors

Thu, 07/01/2010 - 14:25
+1
How many should we aim for? Like... 3 plus the number of current committers? Let's say 2 more...
Sent: Friday, June 25, 2010 3:54 AM
To: spark-dev@googlegroups.com
I support this and vote for robertthrgray.
Sent from my iPhone
It seems like there's been an uptick in contributors working on private forks, especially with vs2010 work ongoing.