-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support layout and page title in same page? #5
Comments
Ooh, it looks like I can put a _ViewStart.md in each view directory, and that will be picked up. That will be a fine solution for me... |
Nope, that doesn't work - I've tried a few things, and although a single _ViewStart.md with |
@jskeet I change the directives little bit last week but I didn't push the updates yet, hope I will do it soon. |
Uploading the latest change will fix the issue. Also I will look to support multiple |
RIghto - will use different controllers just for now, but fix it later - thanks :) |
No need for multiple _ViewStart in this particular case, so long as there's a way of making a single |
Yes you can, but it's tedious 😄, we can support |
After looking to the latest code the |
@jskeet after this commit ac6800b this should be fixed. You can have a look to this https://github.com/hishamco/MarkdownViewEngine/blob/master/samples/MarkdownViewEngineSample/Views/Home/Index.md and https://github.com/hishamco/MarkdownViewEngine/blob/master/samples/MarkdownViewEngineSample/Views/Home/About.md which there are using different layouts |
I have two different layouts I need to support: one for the user guide, and one for a developer guide.
Ideally, I could default to the user guide but have a file in the developer directory that changes the layout. However, failing that, it wouldn't be awful to have:
in each developer guide page. But at the moment, I think only a single directive is supported per file. Perhaps it should read a line at a time until it finds something which isn't a directive (and processing the directives as it goes), and then concatenate the rest of the file with that...
The text was updated successfully, but these errors were encountered: