Discussion Group

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

Re: Generic SparkViewBase in a standalone app.

Wed, 06/02/2010 - 18:12
No I have nothing in the view. The view is not declaring any
viewmodel, since the code that instanciate the view is setting the
DefaultPageBaseType Property using typeOf().FullName
But should I then build the string manually in my code because typeof
returns me those unhandled characters? I'll give it a try and reply in

Re: Generic SparkViewBase in a standalone app.

Wed, 06/02/2010 - 00:23
I'm not sure if there is any fundamental issue with your generics, but
on the view side, how are you declaring your model? Are you using
something like <viewdata model ="IEnumerable[[EmailData]]"/> with ['s
in place of >'s? A simple answer, but it would match the errors you
are getting.

--

Generic SparkViewBase in a standalone app.

Mon, 05/31/2010 - 00:51
Hi,
I am building a newsletter service that uses spark to generate the
HTML.
I can get Spark to work fine in my standalone application if the
DefaultPageBaseType is a simple class inheriting from SparkViewBase

So I have a ViewData class inheriting from SparkViewBase with a Model
property of type EmailData containing all the info to build up the

Created Issue: DefaultDescriptorBuilder: Empty prefix is handled incorrectly [6141]

Sun, 05/30/2010 - 17:41
In commit 7cb2aa3967df572901f2, DefaultDescriptorBuilder was changed to use <use master="foobar"/>-tags with an optional prefix (ie. <s:use master="foobar"/>). However, the parser will look for the colon whenever the prefix is non-null, that is: also if it is empty. An empty prefix should be considered "no prefix" at all. The problem breaks nested master pages (see the three pass example on the web site), the <use master=""/> tag in Application.spark is not recognized anymore.

Spark Views in a separate assembly

Sun, 05/30/2010 - 17:41
I have a separate assembly in which I want create controllers and
views to share between several projects. I am able to get the
controllers to load from the shared assembly, but when I try to get
spark to access the views, it won't load them from the shared
assembly. What do I need to do to get spark to access the views in the

Re: Redefining the model

Sun, 05/30/2010 - 16:37
Ah, naturally! I don't know why I was ignoring the regularly available
rendering methods.

--
You received this message because you are subscribed to the Google Groups "Spark View Engine Dev" group.
To post to this group, send email to spark-dev@googlegroups.com.
To unsubscribe from this group, send email to spark-dev+unsubscribe@googlegr oups.com.

Re: Redefining the model

Sun, 05/30/2010 - 14:29
It will if u call #RenderPartial()

--
You received this message because you are subscribed to the Google Groups "Spark View Engine Dev" group.
To post to this group, send email to spark-dev@googlegroups.com.
To unsubscribe from this group, send email to spark-dev+unsubscribe@googlegr oups.com.

Redefining the model

Sat, 05/29/2010 - 15:41
Hi,

this topic has come up a few times in the archives, but I never saw an
actual answer:

Let's say I have a strongly-typed view. I like this, because stuff
like MvcContrib Html Helpers use the model so that I can do stuff
like: this.Input(x => x.Name); and so on.

In this view, I am using a number of partials. The partial is also

Re: Visual Studio 2010 Intellisense

Sat, 05/29/2010 - 12:13
Yeah - I've got a few blog posts lined up regarding the development of it,
but usage right now is very alpha. I (and potentially with some help
from Andy Hitchman) am currently working on getting a beta out the door. I'm
hoping to have something usable for "enthusiasts" to start testing a week or

Re: Visual Studio 2010 Intellisense

Fri, 05/28/2010 - 21:48
Any update on the status of Visual Studio 2010 Intellisense?

--
You received this message because you are subscribed to the Google Groups "Spark View Engine Dev" group.
To post to this group, send email to spark-dev@googlegroups.com.
To unsubscribe from this group, send email to spark-dev+unsubscribe@googlegr oups.com.

Re: The view 'Useradmin' or its master was not found in IIS

Thu, 05/27/2010 - 18:28
Confirmed, this was the issue.

Thanks again.

James

--
You received this message because you are subscribed to the Google Groups "Spark View Engine Dev" group.
To post to this group, send email to spark-dev@googlegroups.com.
To unsubscribe from this group, send email to spark-dev+unsubscribe@googlegr oups.com.

Does spark view engine support display templates?

Wed, 05/26/2010 - 15:54
HI,

I have written a String.Spark display template for string types. This
String.Spark has been placed in the Views/Shared/DisplayTemplates
folder. In one of the master pages (Html.spark) I am calling
Html.Display as follows:

<body class="tundra">
<use content="header" />
<div id="menucontainer">

Re: Commented Issue: Css markup crashes view [6114]

Wed, 05/26/2010 - 15:22
I feel that we should go for the breaking change, since it will potentially
solve a lot of headache.

When I first learned about the config option, the first thing I did was set
it to pound-space. Since it is such an easy fix, (that is, since it is a
single config option) I think we should make the change.

Re: Commented Issue: Css markup crashes view [6114]

Wed, 05/26/2010 - 01:33
Scratch that last bit - it will be a breaking change. Those users who
"accidentally" choose no space will loose a bunch of compiled code
unless they change their Statement Marker to "#" inthe config.

I still agree with Tyler that the default should be changed though....
it's cleaner.

--

Re: Commented Issue: Css markup crashes view [6114]

Tue, 05/25/2010 - 23:57
Notwithstanding my comments before about inline CSS leading to brittle
designs, I must say that I'm sold on Tyler's assertions and
suggestions.

I think it's a very elegant solution and he's also right about the
intellisense bits. In fact, my completion handlers for SparkSense
already put a trailing space after the "#" symbol for the exact reason

Spark VS Integration Installer

Tue, 05/25/2010 - 23:41
Seems to have been dropped from the current stable downloads.

Is this on purpose?

I assume the one with v1.0 is still ok to use (not had any troubles
just wanted to check)

James.

--
You received this message because you are subscribed to the Google Groups "Spark View Engine Dev" group.

Re: Commented Issue: Css markup crashes view [6114]

Tue, 05/25/2010 - 23:25
This comment has been bothering me for a couple of days.

First of all, inline styles are no more inappropriate in HTML than
"goto" statements are in C. There are clear and unambiguously correct
usages for both, even though they may not fit your particular project,
problem set, or coding style. Your statement is true for a limited set

Re: Created Issue: Css markup crashes view [6114]

Tue, 05/25/2010 - 02:46
The way I get around this is by prefixing the hash with the element
type:

div#breadcrumb ul li.first{ blah }

Not ideal, but it gets the job done until the stylesheet is moved out
into a separate file.

--
You received this message because you are subscribed to the Google Groups "Spark View Engine Dev" group.