{"categories":[{"label":"Markup","url":"https://skillfed.io/packages/category/text-processing-markup"}],"enrichment":{"capability":"Pybars4 compiles and renders Handlebars.js templates in Python, allowing you to use the same template syntax on both server and client sides.","skillfed_tags":["template-engine","handlebars","abandoned"],"use_cases":["Render server-side templates using the same Handlebars syntax your frontend already uses, reducing template duplication.","Build custom helpers in Python to extend template logic beyond what Handlebars provides natively.","Generate HTML or text output from templates with partials, loops, and conditional blocks.","Share template files between a Python backend and JavaScript frontend without rewriting syntax.","Precompile templates for efficiency in high-volume rendering scenarios."],"what_it_does":"Pybars4 is a Python implementation of the Handlebars.js templating language, designed to let you write templates once and use them in both server-side Python code and client-side JavaScript. It compiles Handlebars syntax into Python callables that render output by combining template logic with data and helper functions. The package supports many Handlebars features including partials, custom helpers, block statements, scope accessors like `@index` and `@root`, and dynamic partials, though not all Handlebars 2.0 features are fully implemented.\n\nThe package is maintained as a pragmatic fork of pybars3 to enable Python 3 compatibility and add features from Handlebars.js 2.0. It uses a custom `strlist` class to avoid quadratic string concatenation overhead during rendering. Helpers are Python functions that receive context, options, and arguments, and can return lists, tuples, or strlist instances to control escaping behavior.","worth_installing":"No. The package is abandoned (last update 2021-04-04) with no active maintenance, high install friction, and a copyleft license that restricts use in proprietary code. Unless you are maintaining legacy code already using pybars4, consider modern alternatives."},"id":"pybars4","links":{"html":"https://skillfed.io/packages/pybars4","md":"https://skillfed.io/packages/pybars4.md","pypi":"https://pypi.org/project/pybars4/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2021-04-04","license_spdx":null,"license_treatment":"copyleft","name":"pybars4","python_support":"unspecified","summary":"Handlebars.js templating for Python 3"},"popularity":{"monthly_downloads":309208,"position":7759,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.9.13"}
