playframework / playframework/twirl

Why was Html.empty moved to HtmlFormat.empty?

Open
#70 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status:backlog
Dominant language
Scala
Stars
561
Forks
118
Avg merge
1d 15h
Merged PRs (30d)
29

Description

I don't see the reasoning here, and it's awkward to have foo: Html = HtmlFormat.empty -- can there at least be an alias?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the Html.empty and HtmlFormat.empty entry points in the Twirl source and tests, and identify when the move occurred. Done means clarifying the rationale for the change and determining whether a compatibility alias is needed, with the expected behavior covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.