You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and then if the SDL file had a node such as author "Peter Parker" email="[email protected]" active=true
the nodes value and attributes could be injected using:
@Value("${author}")
private String authorValue; // will result in "Peter Parker" being injected
@Value("${author|email}") // note that I may change this to "${author['email']}"
private String authorEmailAttr;
@Value("${author|active}") // note that I may change this to "${author['active']}"
private Boolean authorActiveAttr;
The text was updated successfully, but these errors were encountered:
I've started a branch off of the annotation branch (as it requires multi-module project) which allows users to easily use SDL in Spring projects.
https://github.com/sdlang-dev/SDL/tree/feature/spring
basic usage would be to set some config:
and then if the SDL file had a node such as
author "Peter Parker" email="[email protected]" active=true
the nodes value and attributes could be injected using:
The text was updated successfully, but these errors were encountered: