Discussion Group

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

Custom makro

13 min 57 sec ago
Hello,
I'm running spark in my own HTTP Server. I would like to create one of the
following extensions:
a) Use $[TextName] as a short for ${Language["TextName"]}
b) Use <language id="TextName" />
How do I extend spark to be able to do that?
Are there any samples around? (I have the source code, but do not know where

Re: Commented Issue: Support Mono (linux) [3516]

13 min 57 sec ago
This problem has been resolved on the FubuMVC project for the Spark tests as
well as examples, and all works just fine on Mono now.
Here's the commit<[link]>that
fixed the problem - you'll notice the use of "Path.Combine" in several

Re: Displaying selected tab

13 min 57 sec ago
That's pretty cool actually! Didn't know about that
Thanks
2010/3/10 Louis DeJardin <louis.dejar...@gmail.com>

Commented Issue: Support Mono (linux) [3516]

13 min 57 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.

Commented Issue: Support Mono (linux) [3516]

13 min 57 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

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

Re: Displaying selected tab

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

Re: Displaying selected tab

13 min 57 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

13 min 57 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

13 min 57 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]

13 min 57 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]

13 min 57 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

13 min 57 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]

13 min 57 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]

13 min 57 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]

3 hours 41 min 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]

4 hours 29 min 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]

11 hours 9 min 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

15 hours 41 min 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?

18 hours 53 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