{"id":54876,"library":"st4","title":"StringTemplate 4","description":"Java template engine for generating source code, web pages, emails, and other formatted text output with strict model-view separation.","status":"active","version":"4.3.4","language":"java","source_language":null,"source_url":"https://github.com/antlr/stringtemplate4","tags":["template-engine","code-generation","stringtemplate"],"install":[{"cmd":"<dependency>\n  <groupId>org.antlr</groupId>\n  <artifactId>ST4</artifactId>\n  <version>4.3.4</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.antlr:ST4:4.3.4'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"ST","correct":"org.stringtemplate.v4.ST"}],"quickstart":{"code":"import org.stringtemplate.v4.ST;\n\npublic class TemplateExample {\n    public static void main(String[] args) {\n        ST st = new ST(\"Hello, <name>!\");\n        st.add(\"name\", \"World\");\n        System.out.println(st.render());\n    }\n}","lang":"java","description":"Renders a simple StringTemplate with a variable."},"warnings":[],"env_vars":null,"search_vec":"'4':2 'code':9,28 'code-gener':27 'email':12 'engin':5,26 'format':15 'generat':7,29 'java':3 'model':21 'model-view':20 'output':17 'page':11 'separ':23 'sourc':8 'strict':19 'stringtempl':1,30 'templat':4,25 'template-engin':24 'text':16 'view':22 'web':10","created_at":"2026-06-15T09:27:44.183142+00:00","updated_at":"2026-06-15T09:27:44.183142+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":"http://nexus.sonatype.org/oss-repository-hosting.html","github":"https://github.com/antlr/stringtemplate4","docs":"https://appdoc.app/artifact/org.antlr/ST4/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}