Commit Graph

3 Commits (18f26cfbf7f9b36b838c0e8762bfba98c89b9797)

Author SHA1 Message Date
wxiaoguang 8f00979f73
Drop "unrolled/render" package ()
None of the features of `unrolled/render` package is used. 

The Golang builtin "html/template" just works well. Then we can improve
our HTML render to resolve the "$.root.locale.Tr" problem as much as
possible.

Next step: we can have a template render pool (by Clone), then we can
inject global functions with dynamic context to every `Execute` calls.
Then we can use `{{Locale.Tr ....}}` directly in all templates , no need
to pass the `$.root.locale` again and again.
Jason Song c84238800b
Refactor `setting.Database.UseXXX` to methods ()
Replace .

Refactor `setting.Database.UseMySQL` to
`setting.Database.Type.IsMySQL()`.

To avoid mismatching between `Type` and `UseXXX`.

This refactor can fix the bug mentioned in , so it should be
backported.
Lunny Xiao 36a2d2f919
Add a simple test for external renderer ()
Fix