-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: starter-thymeleaf를 api에서 implementation으로 수정
- Loading branch information
1 parent
a59f2f7
commit 4ccddaf
Showing
3 changed files
with
15 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
package email | ||
|
||
import org.thymeleaf.context.AbstractContext | ||
import org.thymeleaf.context.Context | ||
|
||
class EmailContext : AbstractContext() | ||
class EmailContext( | ||
private val context: Context = Context(), | ||
) { | ||
|
||
fun setVariable(name: String, value: Any) { | ||
context.setVariable(name, value) | ||
} | ||
|
||
fun getContext(): Context { | ||
return context | ||
} | ||
} |
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