Skip to content

Page Title Format #72

Answered by daveaglick
Foxtrek64 asked this question in Q&A
May 17, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The short answer is "yes" :)

I know you've been using Wyam/Statiq for a while, so you probably already know some/most of this, but I'll start from the basics for completion and in case anyone else stumbles here...

ViewData is essentially a per-page dictionary that ASP.NET and Razor maintain for you. In a standard ASP.NET server-style application, you can set stuff in ViewData through a controller or action, middleware, etc. and it's available to the view. But as you noted, the ViewData is specific to a particular "rendering" of a view and not actually tied to the more general concept of that Razor file or page. In a server environment this makes sense given that a request is only ever goi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Foxtrek64
Comment options

Answer selected by Foxtrek64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants