Skip to content

A template for htmx & rust using tera and actix.

License

Notifications You must be signed in to change notification settings

Jak2k/htmx-rust-tera-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

htxm-rust-tera-template

A template for a htmx and rust powered web application using the tera template engine.

Getting Started

  1. Click the "Use this template" button on the github page to create a new repository based on this template.
  2. Clone your new repository.

Option A: Do the tour

  1. Install the codetour extension in vscode.
  2. Open the repository in vscode and start the tour by clicking the butto in codetour's notification or by pressing ctrl+shift+p and typing CodeTour: Start Tour.

Option B: Just run it

  1. Run cargo run to start the server (or bacon run if you have bacon installed).
  2. Open http://localhost:8080 in your browser.

Libraries in this template

  • htmx - Of course! We don't want to write any javascript.
  • rust - Because rust is superiour.
  • actix-web - A fast web framework for rust.
  • actix-files - For serving static files.
  • tera - A for writing reusable html templates.
  • serde - For serializing and deserializing data.
  • color-eyre - For better error messages.
  • lazy_static - For better static variables.

Contributing

  1. Please open an issue first to discuss what you would like to change.
  2. Fork the repository and create a new branch.
  3. Make your changes and commit them.
  4. Open a pull request.
  5. Wait for me to review your changes.
  6. Celebrate! 🎉