You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am mostly familiar with MVC and Web Forms. Trying to understand this great framework better and how to compose custom pipelines. I have a giant list of data loaded from the database using ReadDataModule. I want to pass subsets/chunks of this data to the same razor .cshtml and generate multiple html pages. Each html output page will be dynamically named based on some of the input data. I am trying to write a custom pipeline below to pass the chunks to the razor template multiple times, but having trouble understanding how to do this. Any help is appreciated.
public class TestPipeline : Pipeline
{
public TestPipeline()
{
InputModules = new ModuleList
{
new ReadFiles("TestTemplate.cshtml")
};
ProcessModules = new ModuleList
{
new RenderRazor()
};
OutputModules = new ModuleList
{
new WriteFiles()
};
}
}
The text was updated successfully, but these errors were encountered:
Hey there, sorry for the extremely late reply. I'm catching up on the issues I managed to miss over the last year.
Are you still working on this and need help on how to do it, or were you able to figure it out? Let me know and I'll work up an example if you still need one.
Hi,
I am mostly familiar with MVC and Web Forms. Trying to understand this great framework better and how to compose custom pipelines. I have a giant list of data loaded from the database using ReadDataModule. I want to pass subsets/chunks of this data to the same razor .cshtml and generate multiple html pages. Each html output page will be dynamically named based on some of the input data. I am trying to write a custom pipeline below to pass the chunks to the razor template multiple times, but having trouble understanding how to do this. Any help is appreciated.
The text was updated successfully, but these errors were encountered: