aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-07-10Add partial support for multiple template dirsLibravatar mash2-1/+35
2018-07-02Fix formatting with cargo fmtLibravatar Dirkjan Ochtman1-3/+12
2018-06-29Added linebreaks and linebreaksbr filtersLibravatar Aaron Power1-1/+32
2018-06-25Add support for 'truncate' filter (see #95)Libravatar Dirkjan Ochtman1-1/+14
2018-06-23Allow accidentally disabled join filterLibravatar Dirkjan Ochtman1-1/+2
2018-06-21Fix formatting with cargo fmtLibravatar Dirkjan Ochtman6-39/+58
2018-06-04Converted error-chain based error to enum based errorLibravatar Philipp Korber3-14/+98
- now implements `Send` + `Sync` + `'static` - still implements `std::error::Error`, `Debug`, `Display`, `From<std::fmt::Error>`, `From<::serde_json::Error>`
2018-04-12Isolate proc-macro dependency to the proc macroLibravatar David Tolnay4-1860/+0
The dependency of askama on askama_shared on syn on libproc_macro used to mean libproc_macro would be dynamically linked into any crate using askama. We want only askama_derive to have a runtime dependency on proc macro. This commit moves all proc macro code from askama_shared into askama_derive so that the askama crate no longer dynamically links libproc_macro.
2018-04-12Handle a lack of whitespace after match block (fixes #76)Libravatar Dirkjan Ochtman2-8/+11
2018-04-09Improve error message when template is not foundLibravatar Dirkjan Ochtman1-1/+1
2018-04-02Fix whitespace handling for include blocks (fixes #69)Libravatar Dirkjan Ochtman1-2/+2
2018-01-22Cleanup warnings generated by clippyLibravatar Dirkjan Ochtman3-13/+21
2018-01-21Don't copy trait parameters to type generics (fixes #65)Libravatar Dirkjan Ochtman1-2/+3
2018-01-20Use push() instead of push_value() to add type parameters (fixes #65)Libravatar Dirkjan Ochtman1-1/+1
push_value() requires taking care of the surrounding punctuation, which push() should handle for us. See this issue reported in syn: https://github.com/dtolnay/syn/issues/338
2018-01-19infer Content-type from the file extension for iron integrationLibravatar Hajime Fukuda1-0/+9
2018-01-09Upgrade to syn-0.12 and quote-0.4Libravatar Dirkjan Ochtman3-107/+70
2017-12-25Properly disable rustfmt in parser moduleLibravatar Dirkjan Ochtman1-2/+1
2017-12-25Make generated traits public for use in other modules (fixes #61)Libravatar Dirkjan Ochtman1-1/+1
2017-11-21Disabling rustfmt locally doesn't work in stable RustLibravatar Dirkjan Ochtman1-2/+2
2017-11-21Don't restyle code in parser moduleLibravatar Dirkjan Ochtman1-0/+4
2017-11-21Apply suggestions from rustfmt to improve styleLibravatar Dirkjan Ochtman7-68/+86
2017-11-07Limit line length to < 100 charactersLibravatar Dirkjan Ochtman1-2/+4
2017-11-07Add some documentation for whitespace suppression helpersLibravatar Dirkjan Ochtman1-0/+8
2017-11-07Improve error about unsupported annotation keyLibravatar Dirkjan Ochtman1-1/+1
2017-11-02Support matching custom enumsLibravatar Anthony Nowell2-7/+54
2017-11-02Make match ref/deref as neededLibravatar Anthony Nowell1-1/+24
Much of this can be yanked out and made simpler when match-modes lands in stable
2017-11-02support literals in match armsLibravatar Anthony Nowell2-11/+67
2017-11-02support else in match blockLibravatar Anthony Nowell1-0/+15
2017-11-02implement basic match functionalityLibravatar Anthony Nowell2-1/+95
2017-10-22Make empty string literals workLibravatar Dirkjan Ochtman1-1/+1
2017-10-20Tighten up parser code for path expressionsLibravatar Dirkjan Ochtman1-4/+2
2017-10-20Add support for array literals (fixes #59)Libravatar Dirkjan Ochtman2-0/+31
2017-10-15Add some whitespace to write_call()Libravatar Dirkjan Ochtman1-0/+3
2017-10-15Wrap some overly long linesLibravatar Dirkjan Ochtman1-2/+5
2017-10-15Add scope when importing macrosLibravatar Lars Erik Rosengren3-24/+39
2017-10-14Remove spurious call to dedent()Libravatar Dirkjan Ochtman1-1/+0
2017-10-14Add panic to make sure indentation mismatches are detectedLibravatar Dirkjan Ochtman1-0/+3
2017-10-04Handle path expressions (fixes #56)Libravatar Dirkjan Ochtman2-0/+29
2017-10-01Add a clarifying comment about whitespace in write_call()Libravatar Dirkjan Ochtman1-1/+1
2017-10-01Add comment explaining why Extends doesn't need whitespace handlingLibravatar Dirkjan Ochtman1-0/+2
2017-10-01Fix whitespace handling for macros and imports (#55)Libravatar larros1-4/+16
Resolves https://github.com/djc/askama/issues/52. * Fix of review comments
2017-09-26Rename parse() method to macro_map()Libravatar Dirkjan Ochtman1-1/+1
2017-09-26Improve code compactnessLibravatar Dirkjan Ochtman1-5/+2
2017-09-26Insert macro parameter into locals after defining it (fixes #53)Libravatar Dirkjan Ochtman1-1/+1
2017-09-26Add support for importing template files with macros (#51)Libravatar larros3-4/+62
* Fix review comments for macro imports
2017-09-10Add support for tuple indexing in templatesLibravatar Lars Erik Rosengren1-3/+7
2017-09-07Rename and document top-level Generator::build() methodLibravatar Dirkjan Ochtman1-2/+3
2017-09-07Reorder methods in Generator to aid readabilityLibravatar Dirkjan Ochtman1-450/+450
2017-09-07Rewrite escapable() to prevent duplicationLibravatar Dirkjan Ochtman1-3/+6
2017-09-07Extend escaping according to OWASP recommendationsLibravatar Dirkjan Ochtman1-2/+5