Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Removing Generate*() methods. #321

Closed
wants to merge 3 commits into from
Closed

Removing Generate*() methods. #321

wants to merge 3 commits into from

Conversation

sornaks
Copy link

@sornaks sornaks commented Mar 11, 2015

  1. Removing ITextWriterCopyable - since we made TagHelperContent enumerable.
  2. Removing HtmlEncoder - since generating start tag logic is moved to MVC.Razor.
  3. Removing Generate*() methods and corresponding tests.
  4. Introducing WriteTagHelper() method.

#318

@ghost ghost added the cla-not-required label Mar 11, 2015
public TagHelperOutput(
string tagName,
[NotNull] IDictionary<string, string> attributes,
[NotNull] IHtmlEncoder htmlEncoder)
Copy link
Contributor

Choose a reason for hiding this comment

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

Ahhh awesome no longer need this.

You should also remove this: https://github.com/aspnet/Razor/blob/dev/src/Microsoft.AspNet.Razor.Runtime/project.json#L9

@dougbu
Copy link
Member

dougbu commented Mar 11, 2015

@NTaylorMullen
Copy link
Contributor

⌚ only for the config changes.

@sornaks
Copy link
Author

sornaks commented Mar 16, 2015

Addressed comments.

@NTaylorMullen
Copy link
Contributor

RenderTagOutput(_tagHelperContext.OutputGenerateEndTagMethodName, methodReturnsString: true);

RenderStartWriteTagHelperMethod();
_writer.Write(ExecutionContextVariableName).WriteEndMethodInvocation();
Copy link
Member

Choose a reason for hiding this comment

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

nit: couldn't this be done inside RenderStartWriteTagHelperMethod(), perhaps after renaming that method to (say) RenderWriteTagHelperMethodCall?

@dougbu
Copy link
Member

dougbu commented Mar 16, 2015

⌚ please grab me when you have updated the new doc comments

@sornaks
Copy link
Author

sornaks commented Mar 16, 2015

Updated..


_writer.Write(ExecutionContextVariableName)
.WriteEndMethodInvocation(endLine: false)
.WriteLine(".Wait();");
Copy link
Member

Choose a reason for hiding this comment

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

teensy nit: here's where my commit comment lands. you're indenting the easy and easy-to-maintain way just above (line 366) but doing it the hard way here.

@dougbu
Copy link
Member

dougbu commented Mar 17, 2015

:shipit:

@NTaylorMullen
Copy link
Contributor

:shipit: once we sign off on MVC PR

@sornaks
Copy link
Author

sornaks commented Mar 17, 2015

Checked in. Thanks! 7daec14

@sornaks sornaks closed this Mar 17, 2015
@sornaks sornaks deleted the RemoveGenerate branch March 25, 2015 17:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants