{"id":14967541,"url":"https://github.com/kakulukia/pypugjs","last_synced_at":"2025-10-01T05:30:54.972Z","repository":{"id":37381975,"uuid":"83010650","full_name":"kakulukia/pypugjs","owner":"kakulukia","description":"PugJS syntax adapter for Django, Jinja2 and Mako templates","archived":false,"fork":true,"pushed_at":"2025-03-31T09:01:49.000Z","size":542,"stargazers_count":271,"open_issues_count":12,"forks_count":39,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-09-29T07:08:21.780Z","etag":null,"topics":["django","jade","pug","template-engine"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"akubera/pypugjs","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kakulukia.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-24T06:46:10.000Z","updated_at":"2025-09-20T13:06:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/kakulukia/pypugjs","commit_stats":null,"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"purl":"pkg:github/kakulukia/pypugjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kakulukia%2Fpypugjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kakulukia%2Fpypugjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kakulukia%2Fpypugjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kakulukia%2Fpypugjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kakulukia","download_url":"https://codeload.github.com/kakulukia/pypugjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kakulukia%2Fpypugjs/sbom","scorecard":{"id":548085,"data":{"date":"2025-08-11","repo":{"name":"github.com/kakulukia/pypugjs","commit":"b834ce800cbc4f909aa64b7c43322848d5373d8b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":1,"reason":"Found 3/30 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/tests.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/kakulukia/pypugjs/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/kakulukia/pypugjs/tests.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/tests.yml:45","Warn: pipCommand not pinned by hash: .github/workflows/tests.yml:46","Warn: pipCommand not pinned by hash: .github/workflows/tests.yml:47","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2025-47 / GHSA-7xr5-9hcq-chf9","Warn: Project is vulnerable to: PYSEC-2025-37 / GHSA-8j24-cjrq-gr2m","Warn: Project is vulnerable to: GHSA-7cx3-6m66-7c5m"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T10:03:21.392Z","repository_id":37381975,"created_at":"2025-08-20T10:03:21.392Z","updated_at":"2025-08-20T10:03:21.392Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277778839,"owners_count":25875556,"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","status":"online","status_checked_at":"2025-09-30T02:00:09.208Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["django","jade","pug","template-engine"],"created_at":"2024-09-24T13:38:13.786Z","updated_at":"2025-10-01T05:30:54.590Z","avatar_url":"https://github.com/kakulukia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"PyPugJS |PyPiPackage| |BuildStatus| |Coverage|\n===================================================\n\n.. |PyPiPackage| image:: https://badge.fury.io/py/pypugjs.svg\n   :target: https://badge.fury.io/py/pypugjs\n\n.. |BuildStatus| image:: https://github.com/kakulukia/pypugjs/actions/workflows/tests.yml/badge.svg\n   :target: https://github.com/kakulukia/pypugjs/actions/workflows/tests.yml\n\n.. |Coverage| image:: https://codecov.io/gh/kakulukia/pypugjs/branch/master/graph/badge.svg\n   :target: https://codecov.io/gh/kakulukia/pypugjs\n\n**PyPugJS is a fork of** `PyJade \u003chttp://github.com/syrusakbary/pyjade\u003e`_\n**with the name Jade changed to** `PugJS \u003chttps://github.com/pugjs/pug\u003e`_.\n\n**Additional disclaimer:** Since the original pypugjs died i took the liberty to keep it alive, because\nsince starting to work with the jade compiler for node I hate writing HTML and want to continue using it in my Django projects.\nI will keep the existing non Django stuff inside the project, but I cannot support anything other since I'm not actively using\nit nor will be in the foreseeable future. Tornado, Mako etc. support will be welcome tho!\n\nPyPugJS is a high performance port of PugJS for python, that converts any .pug source into different\nTemplate-languages (Django, Jinja2, Mako or Tornado).\n\nUTILITIES\n=========\nTo simply output the conversion to your console::\n\n    pypugjs [-c django|jinja|mako|tornado] input.pug [output.html]\n\nINSTALLATION\n============\n\nTo install pypugjs::\n\n    pip install pypugjs\n\nNow simply **name your templates with a `.pug` extension** and this PugJS compiler\nwill do the rest.  Any templates with other extensions will not be compiled\nwith the pypugjs compiler.\n\n`Framework specific installation instructions \u003cdocs/installation.rst\u003e`_\n\nSyntax\n======\n\nGenerally the same as the PugJS Node module (except of cases and several other features, which are not implemented)\nhttps://github.com/pugjs/pug/blob/master/README.md\n\n\nExample\n-------\n\nThis code\n\n.. code:: pug\n\n    !!! 5\n    html(lang=\"en\")\n      head\n        title= pageTitle\n        script(type='text/javascript').\n          if (foo) {\n             bar()\n          }\n      body\n        h1.title PugJS - node template engine\n        #container\n          if youAreUsingPugJS\n            p You are amazing\n          else\n            p Get on it!\n\n\nConverts to\n\n.. code:: html\n\n    \u003c!DOCTYPE html\u003e\n    \u003chtml lang=\"en\"\u003e\n      \u003chead\u003e\n        \u003ctitle\u003e{{pageTitle}}\u003c/title\u003e\n        \u003cscript type='text/javascript'\u003e\n          if (foo) {\n             bar()\n          }\n        \u003c/script\u003e\n      \u003c/head\u003e\n      \u003cbody\u003e\n        \u003ch1 class=\"title\"\u003ePugJS - node template engine\u003c/h1\u003e\n        \u003cdiv id=\"container\"\u003e\n          {%if youAreUsingPugJS%}\n            \u003cp\u003eYou are amazing\u003c/p\u003e\n          {%else%}\n            \u003cp\u003eGet on it!\u003c/p\u003e\n          {%endif%}\n        \u003c/div\u003e\n      \u003c/body\u003e\n    \u003c/html\u003e\n\nConvert existing templates online with the `HTML2Jade converter \u003chttp://www.html2jade.org/\u003e`_.\n\n\nRegister filters\n================\n\nIf you want to register a function as a filter, you only have to\ndecorate the function with ``pypugjs.register_filter(\"filter_name\")``\n\n.. code:: python\n\n    import pypugjs\n\n    @pypugjs.register_filter('capitalize')\n    def capitalize(text, ast):\n      return text.capitalize()\n\n\nNotable Features\n===================\n\nAdding conditional classes:\n\n.. code:: pug\n\n    a(class={'active-class': True, 'another': False})\n\nDefine mixins like this *mixins/foo.pug*:\n\n.. code:: pug\n\n    mixin foo(data)\n      .foo {{ data }}\n\nAnd use them in your templates like this:\n\n.. code:: pug\n\n    include mixins/foo.pug\n\n    div\n      +foo(data)\n\n\n*Mixins might not work, depending on the used Framework.\nThe following have been reported as broken:*\n\n* Django (v4.2)\n\n\nTESTING\n=======\n\nTo start the testsuite, start the following commands::\n\n    make init\n    make test\n\nTODOs and BUGS\n==============\nSee: https://github.com/kakulukia/pypugjs/issues\n\n`ChangeLog \u003cdocs/HISTORY.rst\u003e`_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkakulukia%2Fpypugjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkakulukia%2Fpypugjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkakulukia%2Fpypugjs/lists"}