217 questions
-2
votes
1
answer
106
views
Can I use a third party view engine for Razor Pages? [closed]
Although it is called Razor Pages for a reason I'm just wondering if it is possible to use a different view engine, say Spark Engine or any other View Engine you can think of.
I also wonder the same ...
1
vote
1
answer
29
views
Documentation about "left-offset" syntax?
Where do I find more documentation about the left-offset syntax in spark?
Specifically is there an elements reference for "left-offset" syntax?
EDIT:
The syntax seems to be like pug(formerly known ...
5
votes
3
answers
13k
views
You need to build Spark before running this program error when running bin/pyspark
I am getting started with Spark.
I am getting an issue when starting spark.
I downloaded from spark official website, I am trying to quickstart from this https://spark.apache.org/docs/0.9.0/quick-...
0
votes
1
answer
169
views
Spark Macro error (The name Html doesn't exists in current context)
We are working in a project where Spark view engine has been used. We are updating the framework and version of the project. After updating the version we are getting error "The name Html doesn't ...
0
votes
1
answer
78
views
Error in installing spark view engine
I found a similar question here.
I tried that solution of the accepted answer. No luck for me.
I tried by running this command through Package manager console
Install-Package Spark.Web.Mvc4
It ...
2
votes
0
answers
65
views
Migrating Spark InLine If view syntax to Razor
We have a ton of spark views I'm migrating over to Razor and in many places we use the inline spark if syntax as shown below.
<viewdata about="AboutViewModel" />
<div class="button-...
2
votes
1
answer
121
views
How to include bundling in spark layout files in ASP.NET MVC?
I have defined bundles and I am trying to use them in my spark layout with the following syntax.
${Scripts.Render("~/bundles/jqueryPlugins")}
${Scripts.Render("~/bundles/jqGridJqueryPlugins")}
${...
0
votes
1
answer
67
views
Casting model within Spark View
I have two objects that a model can be. I have a base class of ctrl1, with an inherited class of ctrl2. In my Spark view, I have a 'each' on a div to render out the controls in a list (these can be ...
0
votes
1
answer
110
views
Spark can't find my template
I'm trying to convert from Razor to Spark.
Here is my controller:
public class HomeController : Controller
{
public ActionResult Index()
{
return View("~/Views/...
0
votes
1
answer
1k
views
How to set path to Mono so Supervisor knows about it?
I am following this tutorial (Hosting Nancy with Nginx on Ubuntu) with one change. I am using the Spark view engine instead of the built in view engine.
Spark view engine throws an error building any ...
0
votes
1
answer
14k
views
"The name 'Html' does not exist in the current context" exception
I'm rendering Spark templates in a console application and I'm trying to use RenderPartial like so:
${Html.RenderPartial("_mypartial.spark", myData)}
but I'm getting this error when compiling the ...
2
votes
2
answers
867
views
Prevent view caching in Nancy when using the Spark template engine
I'm using a self-hosted Nancy with Spark templates. I've disabled the cache specifically (though in DEBUG is should be disabled by default).
protected override void ApplicationStartup(Nancy....
0
votes
3
answers
3k
views
HTML Helper checking if the date is MinValue
Can I configure the HTML Helper to display String.Empty if my date is MinValue?
${Html.TextBoxFor(v=>v.Date)}
How can I do this?
0
votes
1
answer
123
views
HtmlHelper to display only a few characters
Is it possible use a HtmlHelper to display only a few characters of the text? how can I do this?
0
votes
1
answer
131
views
Razor helper to Spark
hi there I'm having some trouble rewriting this code in spark, we have a website which uses both Spark and Razor, so when we do anything in razor it has to change in spark as well.
I have been using ...