youtube / spitfire

A high-performance Python template language
BSD 3-Clause "New" or "Revised" License
403 stars 59 forks source link

Python Usage examples are needed badly to make use of this library #84

Open richlysakowski opened 2 years ago

richlysakowski commented 2 years ago

Without usage examples, new people cannot really see this in action.

Please provide pointers and explanations. Thank you.

And please explain why Spitfire is better than Cheetah or Jinja2? The performance appears to be very similar, all three are in the low milliseconds.

re-masashi commented 10 months ago

Firstly, I wholeheartedly agree with you that the documentation and examples are not appreciably good. However, I will let you know if some changes are otw.

Secondly, the difference is in milliseconds, but when used in a server, the same template is called millions of times and thus, we get a 2-3 thousand seconds difference.