{"id":26748372,"url":"https://github.com/runabol/jiccup","last_synced_at":"2025-04-14T22:14:43.268Z","repository":{"id":94886454,"uuid":"115772112","full_name":"runabol/jiccup","owner":"runabol","description":"Clojure Hiccup inspired HTML rendering experiment","archived":false,"fork":false,"pushed_at":"2017-12-30T19:55:37.000Z","size":82,"stargazers_count":31,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T22:14:39.282Z","etag":null,"topics":["html","java","library"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/runabol.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,"governance":null}},"created_at":"2017-12-30T03:53:28.000Z","updated_at":"2020-06-11T13:53:17.000Z","dependencies_parsed_at":"2023-07-29T18:00:57.495Z","dependency_job_id":null,"html_url":"https://github.com/runabol/jiccup","commit_stats":null,"previous_names":["runabol/jiccup"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runabol%2Fjiccup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runabol%2Fjiccup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runabol%2Fjiccup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runabol%2Fjiccup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/runabol","download_url":"https://codeload.github.com/runabol/jiccup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248968917,"owners_count":21191162,"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":["html","java","library"],"created_at":"2025-03-28T10:17:35.144Z","updated_at":"2025-04-14T22:14:43.248Z","avatar_url":"https://github.com/runabol.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jiccup\n\nJiccup is a [Hiccup](https://github.com/weavejester/hiccup)-inpsired library for representing HTML in Java. \n\nWarning: This project is still in an experimental phase. \n\n# Requirements\n\nJava 1.8+\n\n# Install\n\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.creactiviti\u003c/groupId\u003e\n  \u003cartifactId\u003ejiccup\u003c/artifactId\u003e\n  \u003cversion\u003e0.0.1-SNAPSHOT\u003c/version\u003e\n\u003c/dependency\u003e\n\n\u003crepositories\u003e\n   \u003crepository\u003e\n      \u003cid\u003emaven-snapshots\u003c/id\u003e\n      \u003curl\u003ehttp://oss.sonatype.org/content/repositories/snapshots\u003c/url\u003e\n      \u003clayout\u003edefault\u003c/layout\u003e\n      \u003creleases\u003e\n         \u003cenabled\u003efalse\u003c/enabled\u003e\n      \u003c/releases\u003e\n      \u003csnapshots\u003e\n         \u003cenabled\u003etrue\u003c/enabled\u003e\n      \u003c/snapshots\u003e\n   \u003c/repository\u003e\n\u003c/repositories\u003e\n```\n\n# Syntax\n\n## Hello World\n\nHere is a basic example of Jiccup's syntax:\n\n```\nimport static com.creactiviti.jiccup.Elements.*;\n\n...\n\nhtml (\n  body(\n    h1(content(\"Hello World\"))\n  )\n);\n```\n\nWhich will render the following HTML: \n\n```\n\u003chtml\u003e\n  \u003cbody\u003e\n   \u003ch1\u003eHello World\u003c/h1\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Bootstrap Example\n\n```\nimport static com.creactiviti.jiccup.Elements.*;\n\n...\n\nhtml (\n    head (\n      stylesheet(\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\"),\n      stylesheet(\"/starter-template.css\"),\n      title(\"Starter Template for Bootstrap\")\n    ),\n    body(\n      nav(\n        css(\"navbar\",\"navbar-inverse\",\"navbar-fixed-top\"),\n        div(\n            css(\"container\"),\n            div(\n              css(\"navbar-header\"),\n              button(css(\"navbar-toggle\",\"collapsed\"),span(css(\"sr-only\"),content(\"Toggle navigation\")),attr(\"type\", \"button\")),\n              a(href(\"/\"),content(\"Project name\"),css(\"navbar-brand\"))\n            ),\n            div(\n               id(\"navbar\"),\n               css(\"collapse\",\"navbar-collapse\"),\n               ul(\n                 css(\"nav\",\"navbar-nav\"),\n                 li(a(href(\"/\"),css(\"active\"),content(\"Home\"))),\n                 li(a(href(\"#about\"),content(\"About\"))),\n                 li(a(href(\"#contact\"),content(\"Contact\")))\n               )\n            )\n         )\n       )\n       div(\n         css(\"container\"),\n         div(css(\"starter-template\"),\n               h1(content(\"Bootstrap starter template\")),\n               p(css(\"lead\"),content(\"Use this document as a way to quickly start any new project.\u003cbr\u003e All you get is this text and a mostly barebones HTML document.\"))\n         )\n       )\n    )\n)\n```\n\nWhich renders bootstrap's [starter](https://getbootstrap.com/docs/3.3/examples/starter-template/) template.\n\n# Spring Integration\n\nSee [Spring Boot Starter Jiccup](https://github.com/creactiviti/spring-boot-starter-jiccup)\n\n# License\n\nJiccup is released under version 2.0 of the Apache License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunabol%2Fjiccup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frunabol%2Fjiccup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunabol%2Fjiccup/lists"}