Metadata-Version: 2.4
Name: netbox_better_templates
Version: 1.0.2
Summary: Adds some functionality to netbox templates and config render.
Home-page: https://github.com/radin-system/netbox-better-templates
Author: Radin System
Author-email: Radin-System <technical@rsto.ir>
Project-URL: Homepage, https://github.com/Radin-System/netbox-better-templates
Project-URL: BugTracker, https://github.com/Radin-System/netbox-better-templates/issues
Keywords: python,netbox,provisioning,template,jinja,jinja2
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: home-page
Dynamic: license-file

# Netbox Better Templates Plugin
Adds some functionality to netbox templates and config render.
The plugin uses `Monkey-patching` and injects extensions into the netbox render method.

## Installation

1. Install plugin with pip

```bash
cd /opt/netbox
source venv/bin/activate
pip install netbox_better_templates
```

2. Add `netbox_better_templates` to `local_requirements.txt` file

3. Edit the `PLUGINS` in `configuration.py`
```python
PLUGINS = [
    'netbox_better_templates'
]
```


## Added Functions

- **datetime**: adds datetime to config templates.
```jinja3
{{ datetime.now() }}
```

- **now**: standard now function of datetime.
```jinja3
{{ now() }}
```

contributors are welcome. fork for any changes you want to make
