Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions COMPATIBILITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Differences and Compatibility

Despite all efforts for compatibility, [rust-web/twig][documentation] and [twigPHP] differ in the following aspects:

## Twig Templates

* **Encoding** - Twig Rust only supports UTF8 encoded templates. Templates must be converted prior usage.

* **Not yet implemented** - the following functionality is not yet implemented, but about to come.
* ... almost everything. But stay tuned.

## Twig Extensions

* **Rust** - twig-rust extensions must be written in rust, instead of php. (see `src/api` in the [documentation] for details)

[twigphp]: http://twig.sensiolabs.org/documentation
[documentation]: http://rust-web.github.io/twig
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A **template engine** for everyone writing web applications with Rust. By design
* fast
* and secure

This library is derived from [Twig (for PHP)][twigphp] and intended to become a _fully compatible_ port - as far as it makes sense.
This library is derived from [Twig (for PHP)][twigphp] and intended to become a [_fully compatible_][compatibility] port - as far as it makes sense.

## Documentation

Expand All @@ -20,7 +20,8 @@ This is an effort to merge two alpha-grade implementations and to proceed from t
* https://github.com/Nercury/twig-rs
* https://github.com/colin-kiegel/twig-rust

see issues and pull-requests for more information about next steps
see issues and pull-requests for more information about next steps.

[twigphp]: http://twig.sensiolabs.org/documentation
[documentation]: http://rust-web.github.io/twig
[compatibility]: https://github.com/rust-web/twig/blob/master/COMPATIBILITY.md