{"id":16959505,"url":"https://github.com/crdoconnor/orji","last_synced_at":"2025-03-21T14:49:04.972Z","repository":{"id":63864597,"uuid":"571207577","full_name":"crdoconnor/orji","owner":"crdoconnor","description":"Org-mode jinja2 swiss army knife.","archived":false,"fork":false,"pushed_at":"2025-01-02T13:41:17.000Z","size":329,"stargazers_count":10,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T19:48:01.801Z","etag":null,"topics":["j2cli","jinja","jinja2","org-mode","orgmode","orgzly"],"latest_commit_sha":null,"homepage":"https://hitchdev.com/orji","language":"Gherkin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crdoconnor.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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}},"created_at":"2022-11-27T14:10:41.000Z","updated_at":"2025-01-02T13:41:21.000Z","dependencies_parsed_at":"2023-10-21T21:24:31.904Z","dependency_job_id":"a9712524-437a-46bb-9a6a-302d437793cc","html_url":"https://github.com/crdoconnor/orji","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crdoconnor%2Forji","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crdoconnor%2Forji/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crdoconnor%2Forji/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crdoconnor%2Forji/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crdoconnor","download_url":"https://codeload.github.com/crdoconnor/orji/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244816235,"owners_count":20515063,"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":["j2cli","jinja","jinja2","org-mode","orgmode","orgzly"],"created_at":"2024-10-13T22:45:09.750Z","updated_at":"2025-03-21T14:49:04.940Z","avatar_url":"https://github.com/crdoconnor.png","language":"Gherkin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OrJi\n\n[![Main branch status](https://github.com/crdoconnor/orji/actions/workflows/regression.yml/badge.svg)](https://github.com/crdoconnor/orji/actions/workflows/regression.yml)\n\nOrJi is a command line tool to generate text files using [jinja2](https://en.wikipedia.org/wiki/Jinja_(template_engine))\nand [orgmode](https://en.wikipedia.org/wiki/Org-mode) files. It can be used to generate LaTeX, Markdown or HTML or any other kind of text from an orgmode file.\n\nIt is somewhat inspired by [j2cli](https://github.com/kolypto/j2cli).\n\n## Quickstart\n\n\n\nSimple org mode file used with simple template.\n\n\n\n\n\nsimple.org\n```\n* A normal note\n\nJust a note\n\n* TODO Wash car :morning:\n\nCar wash.\n\n* TODO File taxes :evening:\n\nFile taxes for wife too.\n\n* DONE Watch TV\n\n```\n\n\nsimple.jinja2\n```\n{% for note in root %}\n{%- if note.state == \"TODO\" -%}\n# {{ note.name }} ({% for tag in note.tags %}{{ tag }}{% endfor %})\n\n{{ note.body }}\n{% endif %}\n{% endfor %}\n\n```\n\n\n\n\nRunning:\n```bash\norji out simple.org simple.jinja2\n```\n\nWill output:\n```\n\n# Wash car (morning)\n\nCar wash.\n\n# File taxes (evening)\n\nFile taxes for wife too.\n\n\n\n\n```\n\n\n## Why?\n\nThe practical itch I was scratching was editing and writing small blocks of content in [orgzly](https://orgzly.com/) on my phone and being able to kick off a small script that either turned it into a nice letter PDF or CV pdf or updated the markdown on my website.\n\nIt also lets me maintain [separation of concerns](https://en.wikipedia.org/wiki/Separation_of_concerns) on personal documents by keeping content in org files and style in jinja2 templates.\n\n## Install\n\nOrJi can be installed with pip:\n\n```bash\npip install orji\n```\n\nAs a command line app, it is typically best installed via\n[pipx](https://pipx.pypa.io/stable/).\n\n```bash\npipx install orji\n```\n\n### Using OrJi\n\n- [Demonstration of all template features](https://hitchdev.com/orji/using/all-template-features)\n- [Deliberately trigger a template failure](https://hitchdev.com/orji/using/deliberate-failure)\n- [Insert file](https://hitchdev.com/orji/using/insert)\n- [Example of Generated LaTeX A4 CV](https://hitchdev.com/orji/using/latex-cv)\n- [Example of Generated LaTeX A4 Letter](https://hitchdev.com/orji/using/latex-letter)\n- [Convert chunks of orgmode text into markdown](https://hitchdev.com/orji/using/markdown)\n- [Use a python module with template variables and methods](https://hitchdev.com/orji/using/module)\n- [Templated with more than one note](https://hitchdev.com/orji/using/orji-run-multiple)\n- [Run](https://hitchdev.com/orji/using/orji-run)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrdoconnor%2Forji","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrdoconnor%2Forji","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrdoconnor%2Forji/lists"}