Skip to content

Commit

Permalink
Builder annotation doesn't work with private fields?
Browse files Browse the repository at this point in the history
  • Loading branch information
ultraq committed Jan 27, 2025
1 parent 1b2e00d commit 06132c6
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,28 +51,32 @@ import groovy.transform.builder.SimpleStrategy
*
* @author Emanuel Rabina
*/
@Builder(builderStrategy = SimpleStrategy, prefix = 'with')
@Builder(
builderStrategy = SimpleStrategy,
includes = ['sortingStrategy', 'autoHeadMerging', 'experimentalTitleTokens'],
prefix = 'with'
)
class LayoutDialect extends AbstractProcessorDialect {

static final String DIALECT_NAME = 'Layout'
static final String DIALECT_PREFIX = 'layout'
static final int DIALECT_PRECEDENCE = 10

private SortingStrategy sortingStrategy = new AppendingStrategy()
SortingStrategy sortingStrategy = new AppendingStrategy()

/**
* Experimental option, set to {@code false} to skip the automatic merging
* of an HTML {@code <head>} section.
*/
private boolean autoHeadMerging = true
boolean autoHeadMerging = true

/**
* Experimental option, set to {@code true} to use standard Thymeleaf
* expression syntax for title patterns and to have access to the title parts
* in templates as the variables {@code layoutDialectContentTitle} and
* {@code layoutDialectLayoutTitle}.
*/
private boolean experimentalTitleTokens = false
boolean experimentalTitleTokens = false

/**
* Constructor, configure the layout dialect.
Expand Down

0 comments on commit 06132c6

Please sign in to comment.