asp.net mvc - Nested "Layouts" in Spark? -


I am in the process of changing the views from ASP.NET MVC tags in order to use Spark. However, I do not know whether ASP.Net is an analog of Nested Masters in Spark Layouts.

If it is not there, will it be the best way to use partial?

Spark can have nested master pages. Just place your master and sub-master pages in the 'Layouts' folder and then call them Master = "EFU" /> > Using & lt; Refer to by including.

Example

(application.spark)

  & lt; P & gt; Hello world - Master & lt; / P & gt; & Lt; Using: View / & gt;  

(Submasters. Spark)

  & lt; Content: View & gt; & Lt; P & gt; Hello world - Submasters & lt; / P & gt; & Lt; / Content & gt; & Lt; Using: View / & gt;  

(Foo.spark)

  & lt; Master = "submaster" /> & Lt; Content: View & gt; & Lt; P & gt; Hello World - Foo & lt; / P & gt; & Lt; / Content & gt;  

See for more information.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -