askama

(β˜… 1,177)

A template rendering engine based on Jinja, generating type-safe Rust code at compile time.

  • .gitattributes
  • .gitignore
  • .gitmodules
  • .readthedocs.yaml
  • .rustfmt.toml
  • _typos.toml
  • Cargo.toml
  • clippy.toml
  • deny.toml
  • LICENSE-APACHE
  • LICENSE-MIT
  • README.md
  • tomlfmt.toml

# Installation Guide

1. Get the code
git clone https://github.com/askama-rs/askama

Downloads the entire project code from GitHub to your computer.

cd askama

Moves into the project folder you just downloaded.

2. Python

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
⚠️ This is a large repository, so this method may point to an internal sub-package rather than the actual core product. Check the full README as well.
pip install .

Installs the package published on PyPI directly β€” no need to clone the source.

python <μ‹€ν–‰ν•  파일λͺ…>.py # READMEμ—μ„œ μ •ν™•ν•œ μ‹€ν–‰ 파일λͺ…을 ν™•μΈν•˜μ„Έμš”

Runs the Python script (or module).

βœ… If it runs without errors and prints output in the terminal, it worked.

3. Rust

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Rust (rustup) Installing via rustup also installs cargo.
cargo add askama

Type this command into your terminal and run it.

βœ… If cargo build finishes without errors, it worked. The executable is created under target/.

Pulled directly from this repo's README.

// repository documentation