Commit Graph

6 Commits

Author SHA1 Message Date
fdb-hiroshima
e77e4d86e8
Better big form handling ()
* Allow customizing max form size from env vars

* Add error page for unprocessable entities

And change default http port to 7878

* Improve char counter: under the editor, more discrete, and give it a default value
2019-01-27 10:55:22 +01:00
Marek Ľach
ec4b9d5067 Text strings for articles () 2018-12-25 15:55:48 +01:00
Baptiste Gelez
3fce5d6a14
Use Rust for the front-end too ()
Rust can compile to WASM, so let's use it for front-end code as well.

To compile the front-end:

```
cargo install cargo-web
cargo web deploy -p plume-front
```
2018-12-25 11:51:40 +01:00
Baptiste Gelez
b73fbd3768
License federation ()
* Federate license

* Make it possible to use no license
2018-12-09 18:43:34 +01:00
Trinity Pointard
b4e4b497ee Works on template
Use uri! to generate links instead of hardcoded urls
Fix 
Fix invalid links needing to be POST forms
Translate login message for boost and like directly from template
Put js for search in its own file
2018-12-07 12:10:03 +01:00
Baptiste Gelez
70af57c6e1
Use Ructe ()
All the template are now compiled at compile-time with the `ructe` crate.

I preferred to use it instead of askama because it allows more complex Rust expressions, where askama only supports a small subset of expressions and doesn't allow them everywhere (for instance, `{{ macro!() | filter }}` would result in a parsing error).

The diff is quite huge, but there is normally no changes in functionality.

Fixes  and unblocks  and 
2018-12-06 18:54:16 +01:00