{"id":67568,"library":"twirl-api-2-13","title":"Twirl API (Scala 2.13)","description":"Twirl is the Play framework's template engine, providing a Scala-based DSL for generating HTML, XML, and other text formats.","status":"active","version":"1.6.10","language":"java","source_language":null,"source_url":"https://github.com/playframework/twirl","tags":["twirl","template","play","scala"],"install":[{"cmd":"<dependency>\n  <groupId>com.typesafe.play</groupId>\n  <artifactId>twirl-api_2.13</artifactId>\n  <version>1.6.10</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'com.typesafe.play:twirl-api_2.13:1.6.10'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"Html","correct":"play.twirl.api.Html"}],"quickstart":{"code":"import play.twirl.api.Html;\n\npublic class Quickstart {\n    public static void main(String[] args) {\n        Html html = Html.apply(\"<h1>Hello, World!</h1>\");\n        System.out.println(html.body());\n    }\n}","lang":"java","description":"Creates an Html object from a string and prints its body."},"warnings":[{"fix":"Use the artifact with the matching Scala version suffix (e.g., twirl-api_2.13 for Scala 2.13).","message":"Twirl API versions are tied to Scala versions; ensure you use the correct artifact for your Scala version (e.g., _2.13).","severity":"breaking","affected_versions":"all"}],"env_vars":null,"search_vec":"'2.13':4 'api':2 'base':17 'dsl':18 'engin':12 'format':26 'framework':9 'generat':20 'html':21 'play':8,29 'provid':13 'scala':3,16,30 'scala-bas':15 'templat':11,28 'text':25 'twirl':1,5,27 'xml':22","created_at":"2026-06-17T17:39:03.296799+00:00","updated_at":"2026-06-17T17:39:03.296799+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/playframework/twirl","github":"https://github.com/playframework/twirl","docs":"https://appdoc.app/artifact/com.typesafe.play/twirl-api_2.13/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}