{"categories":[{"label":"Markup","url":"https://skillfed.io/packages/category/text-processing-markup"}],"enrichment":{"capability":"Pybars3 compiles and renders Handlebars.js templates in Python, allowing you to use the same template syntax on both server and client.","skillfed_tags":["template-engine","handlebars","dormant"],"use_cases":["Share template definitions between a Python backend and a JavaScript frontend without rewriting them.","Render server-side HTML using Handlebars syntax when you prefer it over Jinja2 or other Python templating languages.","Build custom template helpers in Python that integrate with Handlebars block syntax and context passing.","Precompile Handlebars templates on the server for distribution to client-side rendering.","Migrate from a Node.js Handlebars setup to Python while keeping template syntax consistent."],"what_it_does":"Pybars3 is a Python implementation of the Handlebars.js templating language, designed to let you write templates once and use them on both server and client. It compiles Handlebars syntax into Python callables that render templates with data and custom helpers. The package supports a substantial subset of Handlebars features including block helpers, partials, dynamic partials, subexpressions, and scope accessors like @index and @root.\n\nThe library works by parsing template source into an abstract syntax tree, then generating Python code that renders the template. Helpers are Python functions that accept context and options; partials are pre-compiled template fragments. The package uses a strlist class (a list subclass with a __unicode__ method) to avoid quadratic string concatenation overhead during rendering. It is maintained pragmatically for server-client template sharing rather than as a comprehensive Handlebars port, so not all Handlebars 2.0 features are implemented.","worth_installing":"No\u2014install friction is high (source-only distribution), maintenance is dormant (last release 2019-11-05), and Python version support is outdated (classifiers only list up to 3.4). The copyleft license also restricts proprietary modifications. Consider only if you have an existing codebase already using pybars3 or a specific requirement to share Handlebars templates with a legacy system."},"id":"pybars3","links":{"html":"https://skillfed.io/packages/pybars3","md":"https://skillfed.io/packages/pybars3.md","pypi":"https://pypi.org/project/pybars3/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2019-11-05","license_spdx":null,"license_treatment":"copyleft","name":"pybars3","python_support":"unspecified","summary":"Handlebars.js templating for Python 3 and 2"},"popularity":{"monthly_downloads":355539,"position":7289,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.9.7"}
