{"id":20608957,"url":"https://github.com/mybatis/thymeleaf-scripting","last_synced_at":"2026-03-05T22:06:40.570Z","repository":{"id":33971597,"uuid":"158141006","full_name":"mybatis/thymeleaf-scripting","owner":"mybatis","description":"Thymeleaf scripting plugin for MyBatis","archived":false,"fork":false,"pushed_at":"2025-07-05T19:12:27.000Z","size":3417,"stargazers_count":23,"open_issues_count":5,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-05T20:28:56.128Z","etag":null,"topics":["java","mybatis","scripting"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mybatis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-11-19T00:32:28.000Z","updated_at":"2025-07-05T19:12:09.000Z","dependencies_parsed_at":"2024-01-29T00:29:29.296Z","dependency_job_id":"1d504bb4-f75a-48b1-9a1a-034bd8425eef","html_url":"https://github.com/mybatis/thymeleaf-scripting","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/mybatis/thymeleaf-scripting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybatis%2Fthymeleaf-scripting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybatis%2Fthymeleaf-scripting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybatis%2Fthymeleaf-scripting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybatis%2Fthymeleaf-scripting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mybatis","download_url":"https://codeload.github.com/mybatis/thymeleaf-scripting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybatis%2Fthymeleaf-scripting/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265281176,"owners_count":23739868,"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":["java","mybatis","scripting"],"created_at":"2024-11-16T10:12:19.510Z","updated_at":"2026-03-05T22:06:35.454Z","avatar_url":"https://github.com/mybatis.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MyBatis Thymeleaf 3 Support\n\n[![Java CI](https://github.com/mybatis/thymeleaf-scripting/actions/workflows/ci.yaml/badge.svg)](https://github.com/mybatis/thymeleaf-scripting/actions/workflows/ci.yaml)\n[![Coverage Status](https://coveralls.io/repos/github/mybatis/thymeleaf-scripting/badge.svg?branch=master)](https://coveralls.io/github/mybatis/thymeleaf-scripting?branch=master)\n[![Maven central](https://maven-badges.herokuapp.com/maven-central/org.mybatis.scripting/mybatis-thymeleaf/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.mybatis.scripting/mybatis-thymeleaf)\n[![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/https/oss.sonatype.org/org.mybatis.scripting/mybatis-thymeleaf.svg)](https://oss.sonatype.org/content/repositories/snapshots/org/mybatis/scripting/mybatis-thymeleaf/)\n[![License](https://img.shields.io/:license-apache-brightgreen.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)\n\n![thymeleaf-scripting](https://mybatis.org/images/mybatis-logo.png)\n\nMyBatis Thymeleaf 3 Scripting Support.\n\n## Introduction\n\nThe mybatis-thymeleaf is a plugin that helps applying a SQL using template provided by Thymeleaf 3.\nIf you are not familiar with Thymeleaf 3 syntax, you can see the Thymeleaf documentations.\n\n* https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html#textual-template-modes\n\n### Simple bindable 2-way SQL\n\n```sql\nSELECT * FROM names\n  WHERE id = /*[# mb:p=\"id\"]*/ 1 /*[/]*/\n```\n\n### Dynamic bindable 2-way SQL\n\n```sql\nSELECT * FROM names\n  WHERE 1 = 1\n  /*[# th:if=\"${not #lists.isEmpty(ids)}\"]*/\n    AND id IN (\n      /*[# mb:p=\"ids\"]*/ 1 /*[/]*/\n    )\n  /*[/]*/\n  ORDER BY id\n```\n\n### Dynamic bindable SQL(non 2-way)\n\n```sql\nSELECT * FROM names\n  WHERE 1 = 1\n  [# th:if=\"${not #lists.isEmpty(ids)}\"]\n    AND id IN (\n      [# mb:p=\"ids\" /]\n    )\n  [/]\n  ORDER BY id\n```\n\n## Requirements\n\n  * Java 8, Java 11+\n  * MyBatis 3.4.3+ (Recommend to use 3.5+ or 3.4.x latest version)\n  * Thymeleaf 3.0+ (Recommend to use 3.0.x latest version)\n\n## Documentation\n\n* [Published User's Guide](https://www.mybatis.org/thymeleaf-scripting/user-guide.html)\n\n\n* [Snapshot User's Guide](src/main/asciidoc/user-guide.adoc)\n\n\n## Related Resources\n\n* [Quick Start](https://github.com/mybatis/thymeleaf-scripting/wiki/Quick-Start)\n* [Code completion](https://github.com/mybatis/thymeleaf-scripting/wiki/Code-completion)\n* [Usage on framework](https://github.com/mybatis/thymeleaf-scripting/wiki/Usage-on-framework)\n\n\n## Contact us\n\n### Question\n\nWhen there is a question, at first please confirm whether exists same question at following web sites.\n\n* [Google group for mybatis user(official mailing list)](https://groups.google.com/forum/#!forum/mybatis-user)\n* [Stack Overflow tagged mybatis](https://stackoverflow.com/questions/tagged/mybatis)\n\nIf you cannot find a same question, please post new question to the [mailing list](https://groups.google.com/forum/#!newtopic/mybatis-user) or the [Stack Overflow](https://stackoverflow.com/questions/ask?tags=mybatis,mybatis-thymeleaf).\n\n### Report and Request\n\nWhen you found a bug or want to submit a feature request(new feature or current feature improvement), at first please confirm whether exists same bug or request at following pages.\n\n* [Issue List](https://github.com/mybatis/thymeleaf-scripting/issues)\n* [Pull Request List](https://github.com/mybatis/thymeleaf-scripting/pulls)\n\nIf you cannot find a same report or request, please post new issue to the [issue tracker](https://github.com/mybatis/thymeleaf-scripting/issues/new).\n\n\u003e **IMPORTANT:**\n\u003e\n\u003e When you found a security vulnerability, at first please report it to the [mybatis organization members](https://github.com/orgs/mybatis/people) instead of issue tracker.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmybatis%2Fthymeleaf-scripting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmybatis%2Fthymeleaf-scripting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmybatis%2Fthymeleaf-scripting/lists"}