razor - ServiceStack /views sub-folders -


i have view folder structure such as:

  • home
    • home.cshtml
    • settings.cshtml

when have pages directly in /views/ folder, can following:

public class homeservice : service {   [view("home")]     public object any(home request)     {         return new homeresponse();     } } 

any ideas how tell service serve views sub-folder? better if can define folder object, , able define views normal:

however when have views in sub-folder, cannot following:

public class homeservice : service {     [view("home/home")]     public object any(home request)     {         return new homeresponse();     } } 

any idea how service serve views sub-folder? better if can define folder seperately, , use:

[view("home")] 

all view names inside servicestack /views folder should uniquely named (i.e. request dto's). inside /views folder can in folder structure since they're unique servicestack pick view matching name.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -