Skip to content

Add option to set custom templateParameters#1415

Open
Brondahl wants to merge 1 commit intodomaindrivendev:masterfrom
Brondahl:patch-1
Open

Add option to set custom templateParameters#1415
Brondahl wants to merge 1 commit intodomaindrivendev:masterfrom
Brondahl:patch-1

Conversation

@Brondahl
Copy link
Copy Markdown

@Brondahl Brondahl commented Aug 2, 2021

Add ability to define custom TemplateParameters.
Useful, for example, for injecting C# constant strings into the JS files that we want to c.InjectJavascript() into the Swagger page.

I've already tested that, for example, referencing %(DocumentTitle) in my injected Javascript file works, but I can't do that with my own template key, making the isTemplate parameter of InjectJavascript() pretty pointless.

Add ability to define custom TemplateParameters.
Useful, for example, for injecting C# constant strings into the JS files that we want to c.InjectJavascript() into the Swagger page.

I've already tested that, for example, referencing %(DocumentTitle) in my injected Javascript file works, but I can't do that with my own template key, making the `isTemplate` parameter of `InjectJavascript()` pretty pointless.
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.

1 participant