Discussion Group

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

Commented Issue: Support Mono (linux) [3516]

10 min 52 sec ago
Beginning with version 2.4.2.1 Mono ships with native support for ASP.NET MVC.

According to a discussion on the mailing list [1] and own tests there are problems resolving view paths when Spark is used with Mono on a linux box.

Fixing this issue would help to port existing applications to linux and also to spread usage of Spark.

Re: Displaying selected tab

10 min 52 sec ago
(Sorry - forgot to add text)
You could also use the conditional attrib ?{ } syntax

Re: Displaying selected tab

10 min 52 sec ago
<ul>
<li class="selected?{currentFruit= =Fruit.Oranges}">Oranges</li>
<li class="selected?{currentFruit= =Fruit.Applies}">Apples</li>
</ul>

Re: Displaying selected tab

10 min 52 sec ago
There might be a cleaner way than this, but I just do it with some inline
code (comparing to an enum value if you only have a limited set of tabs):
<ul>
<li${currentFruit==Fruit.Orang es?" class=\"selected\"":""}>Orange s</li>
<li${currentFruit==Fruit.Apple s?" class=\"selected\"":""}>Apples </li>
</ul>

Displaying selected tab

10 min 52 sec ago
I have two levels of tabs at the top of my application -- a root level
and then a sub tab this is laid out via two unordered lists something
like
Root Level Tabs
<li class="selected">Fruit</li> - (current and selected)
<li> Vegetables</li>
Second level tabs based on selection from the Root Level

view compilation failing with latest build

10 min 52 sec ago
I am running the tip of [link]
And have been getting sporadic "An assembly with the same simple name
<name varies> has already been imported"
When i check AppDomain.Current.GetAssemblie s() sure enough it shows
multiple copies of the same dll, so they are presumably all loaded

Created Issue: HTML 5 and Spark view engine - Naming conflict 'section' [5625]

10 min 52 sec ago
I was just trying to create a html 5 page and added some <section> ([link]) tags to separate content. When the spark compiler tried to compile this page I got:

[CompilerException: Section cannot be used at this location]

Commented Issue: Support Mono (linux) [3516]

10 min 52 sec ago
Beginning with version 2.4.2.1 Mono ships with native support for ASP.NET MVC.

According to a discussion on the mailing list [1] and own tests there are problems resolving view paths when Spark is used with Mono on a linux box.

Fixing this issue would help to port existing applications to linux and also to spread usage of Spark.

Using the Spark engine to render views from a database

10 min 52 sec ago
Hi,
Is it possible to render the content of a view (including master and
partials) from a database? In other words, build the content of the
view from a series of sources, and send it through the spark engine
for processing including any model information required?
Are there any examples of this?
Thanks,

Commented Issue: Support Mono (linux) [3516]

10 min 52 sec ago
Beginning with version 2.4.2.1 Mono ships with native support for ASP.NET MVC.

According to a discussion on the mailing list [1] and own tests there are problems resolving view paths when Spark is used with Mono on a linux box.

Fixing this issue would help to port existing applications to linux and also to spread usage of Spark.

Re: Commented Issue: Add support for VS2010 in Spark VS Intellisense [4497]

10 min 52 sec ago
I'm still holding out hope that ReSharper will address some MVC engine
support soon, or in a plugin.
On Fri, Mar 5, 2010 at 12:42 PM, sparkviewengine Issue Tracker Rss Feed <

Commented Issue: Add support for VS2010 in Spark VS Intellisense [4497]

10 min 52 sec ago
This one is wishful thinking :) I've had a go myself at updating the C++ projects to the VS2010 SDK, but it's all a bit beyond me.
I don't seriously expect it will happen before VS2010 RTM's. It can't hurt to ask, right?
Comments: ** Comment from web user: loudej **
Yeah, I took a look at some screen-casts from the PM building an Ook language... It is entirely different, so starting over without the C++ is probably the way to go. Most difficult part will be figuring out how to use the csharp contained language service in the new style of editor, if it's even possible at all...

Commented Issue: Add support for VS2010 in Spark VS Intellisense [4497]

10 min 52 sec ago
This one is wishful thinking :) I've had a go myself at updating the C++ projects to the VS2010 SDK, but it's all a bit beyond me.
I don't seriously expect it will happen before VS2010 RTM's. It can't hurt to ask, right?
Comments: ** Comment from web user: dj_kyron **
There is an entirely new way of making extensions for VS2010 from a first look. I suppose it would mean that adding Spark intellisense will be easier with this system but that the integration might have to be re-coded? The new code editor window is built using WPF so that may provide some interesting challenges/benefits for Spark.

Commented Issue: Add support for VS2010 in Spark VS Intellisense [4497]

10 min 52 sec ago
This one is wishful thinking :) I've had a go myself at updating the C++ projects to the VS2010 SDK, but it's all a bit beyond me.
I don't seriously expect it will happen before VS2010 RTM's. It can't hurt to ask, right?
Comments: ** Comment from web user: runxc1 **
Is there any update on this?? What needs to be done to get this to work?

Re: Spark 1.1 RC1

10 min 52 sec ago
The ~/Shared path instead of ~/Views/Shared has also come up before
IIRC. Changing from a ~/Views/ base to a ~/ would be a good idea, too.
Especially if it could be done in a non-breaking way.
On Mar 2, 7:34 pm, "Stephen Vanterpool" <step...@vanterpool.net>
wrote:

Re: Using master layouts in a direct usage scenario with views stored as embedded resources?

2 hours 34 min ago
Thanks for the reply! Removing the <use.../> element and adding the
templates in reverse order (view, then master) works fine.
Allowing views to specify their own master via the <use> element is a
better fit for my requirements, but I can't get it to work that way
regardless of whether or not I programmatically add the master

Re: Spark 1.1 RC1

Wed, 03/10/2010 - 06:36
That's the problem. I operated under the assumption (I know, I know) that the area implementation was the same. I split off an areas folder, and in each subfolder I included views/models/controllers. I hacked it up to work with a custom descriptorfilter, but I always thought I was missing something. Now I know!

Re: Spark 1.1 RC1

Wed, 03/10/2010 - 06:36
Could be - IIRC the pattern is ~/Views/{area}/{controller}/{v iewname}.spark
You can alter that, but it still needs to be in the ~/Views folder. That's
something you could call a design flaw - the IViewFolder path is relative to
~/Views/ instead of ~/ so you can't reference files outside of that location

Re: Spark 1.1 RC1

Tue, 03/09/2010 - 23:08
I'll put one together, but quick question, does sparks area implementation differ from base mvc?
Sent: Tuesday, March 02, 2010 3:49 PM
To: spark-dev@googlegroups.com
It's certainly intended to - @nkohari mentioned it was working for him.
Could you send a small repro of the problem?
Hey, does this release properly support areas? I removed my custom fix for that issue and used this dll, but areas stopped working entirely.

Re: Spark 1.1 RC1

Tue, 03/09/2010 - 22:52
It's certainly intended to - @nkohari mentioned it was working for him.
Could you send a small repro of the problem?
On Mon, Mar 1, 2010 at 8:26 PM, Stephen Vanterpool