-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
content: use interface to abstract Execute method
Use interface renderer which acts as a field in content struct corresponding to html/template or text/template object depending on the tplType field. This should simplify the entire logic of Execute and hence eliminating the need of an extra switch statement.
- Loading branch information
1 parent
2dd7862
commit bed54bc
Showing
2 changed files
with
32 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters