Skip to content
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

Add basic static rendering #3411

Merged
merged 13 commits into from
Sep 12, 2018
Merged

Add basic static rendering #3411

merged 13 commits into from
Sep 12, 2018

Conversation

yufeih
Copy link
Contributor

@yufeih yufeih commented Sep 12, 2018

[InlineData("image.png", true, false, ContentType.Resource, "image.png", "/image.png", "image.png")]
[InlineData("a&#/b\\.* d.png", true, false, ContentType.Resource, "a&#/b\\.* d.png", "/a&#/b/.* d.png", "a&#/b/.* d.png")]
[InlineData("a.md", false, false, ContentType.Page, "a/index.html", "/a/", "a/")]
[InlineData("a.md", false, true, ContentType.Page, "a.html", "/a", "a")]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"a.html", "/a", "a" [](start = 59, length = 19)

should this be "a.html", "/a.html", "a.html"?


/// <summary>
/// Gets whether to include `.html` in urls.
/// The default value is to generate an `index.html` for each article.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default value is to generate an index.html for each article. [](start = 12, length = 66)

Is this comment for Json?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clarified in comments

output = await Template.Render(model);
}

return (errors, output, dependencies.Build());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

output [](start = 28, length = 6)

this can be PageModel or string, but Build.cs always uses context.WriteJson to write it. Add a context.WriteString when it's string?

Copy link
Contributor

@superyyrrzz superyyrrzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Copy link
Contributor

@live1206 live1206 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@yufeih yufeih merged commit fd1578d into dotnet:v3 Sep 12, 2018
@yufeih yufeih deleted the static-render branch September 12, 2018 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants