Coder Social home page Coder Social logo

standardgalactic / yarte Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zzau13/yarte

0.0 1.0 0.0 3.27 MB

Yarte stands for Yet Another Rusty Template Engine

Home Page: https://yarte.netlify.com

License: Apache License 2.0

Rust 63.43% HTML 26.96% Handlebars 4.29% CSS 1.92% JavaScript 3.40%

yarte's Introduction

Should we start to worry?

bytes-buf feature can produce SIGILL.

avx and sse flags are in almost all cpus of x86 and x86_64 architectures.

More details in zzau13/v_escape#54.

Satan has been slaughtered and sent to heaven. Should we start to worry?

Disclaimer

All structures and functions in this crate -- even those based on the real crates -- are entirely fictional. All celebrity codes are impersonated...poorly. The following program contains coarse language and due to its content it should not be used by anyone.

Yet Another Rust Template Engine

Yarte Latest version

Yarte stands for Yet Another Rust Template Engine. Uses a Handlebars-like syntax, well-known and intuitive for most developers. Yarte is an optimized, and easy-to-use rust crate, with which developers can create logic around their HTML templates using conditionals, loops, rust code and template composition.

Features

  • Almost all Rust expressions are valid
  • Meta programming system with almost all Rust expressions, conditionals, loops, modules and partial recursion
  • Low level, SIMD and zero copy runtime
  • A fancy-text debug mode to visualize the code generated by Yarte
  • Emit snipped annotations at error
  • Improved daily and has full coverage (without stupid bugs that take months or years to fix)

Yarte is under development but some of its parts are stable. The derivations and proc_macro, text and html(not minified), and the json serializer are stable and with enough coverage to put into production. It is also proposed to integrate Jinja or any other template language so you can reuse your favorite templates, do not migrate them, raise an issue and I will try to give it more priority.

Is it really fast?

See it for yourself in the TechEmpower benchmarks with actix and ntex

Documentation

In order to fully understand Yarte's capabilities take a look at the following documentation:

Or, in nightly, just:

#[html] "{{> my_template }}"

Acknowledgment

Yarte is based on all previous templates engines, syntax as well as its documentation is highly influenced by Handlebars. Logo adapted from Creative Commons images

Contributing

Please, contribute to Yarte! The more the better! Feel free to open an issue and/or contacting directly with the owner for any request or suggestion.

I want to move these yarte, v_escape, v_eval and buf-min to a team with me as a member. If someone wants to participate in this team, open an issue

Code of conduct

This Code of Conduct is adapted from the Contributor Covenant, version 1.4, available at http://contributor-covenant.org/version/1/4

License

This project is distributed under the terms of both the Apache License (Version 2.0) and the MIT license, specified in LICENSE-APACHE and LICENSE-MIT respectively.

yarte's People

Contributors

zzau13 avatar dependabot-preview[bot] avatar dependabot[bot] avatar himanshu007-creator avatar focureneb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.