{"id":16696957,"url":"https://github.com/seratch/scalatra-thymeleaf-support","last_synced_at":"2025-04-10T02:51:47.131Z","repository":{"id":3868531,"uuid":"4954141","full_name":"seratch/scalatra-thymeleaf-support","owner":"seratch","description":"Scalatra Thymeleaf Support","archived":false,"fork":false,"pushed_at":"2013-03-29T11:13:28.000Z","size":223,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"2.0.x","last_synced_at":"2025-03-24T04:22:05.912Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seratch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-09T07:30:31.000Z","updated_at":"2019-08-13T15:05:50.000Z","dependencies_parsed_at":"2022-08-27T05:12:48.033Z","dependency_job_id":null,"html_url":"https://github.com/seratch/scalatra-thymeleaf-support","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seratch%2Fscalatra-thymeleaf-support","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seratch%2Fscalatra-thymeleaf-support/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seratch%2Fscalatra-thymeleaf-support/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seratch%2Fscalatra-thymeleaf-support/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seratch","download_url":"https://codeload.github.com/seratch/scalatra-thymeleaf-support/tar.gz/refs/heads/2.0.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248146974,"owners_count":21055452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T17:45:26.449Z","updated_at":"2025-04-10T02:51:47.083Z","avatar_url":"https://github.com/seratch.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scalatra Thymeleaf Support\n\nThis is an extension to Scalatra which enables to use Thymeleaf as Scalatra template engine instead of Scalate.\n\n## Scalatra \n\nScalatra is a tiny, Sinatra-like web framework for Scala. Here are some contributed extensions to the library.\n\nhttps://github.com/scalatra/scalatra\n\n## Thymeleaf\n\nThymeleaf is a Java library. It is an XML / XHTML / HTML5 template engine (extensible to other formats) that can work both in web and non-web environments. It is better suited for serving XHTML/HTML5 at the view layer of web applications, but it can process any XML file even in offline environments.\n\nhttp://thymeleaf.org\n\n## How to use\n\nAdded library dependency to sbt settings.\n\n```scala\n\"com.github.seratch\" %% \"scalatra-thymeleaf-support\" % \"2.0.2\"\n```\n\nAnd then mix ThymeleafSupport to ScalatraServlet/ScalatraFilter.\n\n```scala\nimport scalatraext.thymeleaf.ThymeleafSupport\n\nclass MyServlet extends ScalatraServlet with ThymeleafSupport {\n\n  get(\"/\") {\n    render(\"index\", // webapp/WEB-INF/layouts/index.html\n      \"name\" -\u003e \"Alice\",\n      \"items\" -\u003e Seq(1,2,3)\n      \"data\" -\u003e Map(\"foo\" -\u003e \"bar\")\n    )\n  }\n\n}\n```\n\n## License\n\nApache License, Version 2.0\n\nhttp://www.apache.org/licenses/LICENSE-2.0.html\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseratch%2Fscalatra-thymeleaf-support","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseratch%2Fscalatra-thymeleaf-support","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseratch%2Fscalatra-thymeleaf-support/lists"}