Skip to content

Commit

Permalink
Merge pull request #16 from iodigital-com/gradle-plugin-2
Browse files Browse the repository at this point in the history
Apply filter
  • Loading branch information
crysxd authored Nov 14, 2024
2 parents 80a6b3b + e8ba3b9 commit 8994650
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ internal fun createTemplateContext(
"strings" to values.subContextFor(defaultMode, filter, String::class),
"booleans" to values.subContextFor(defaultMode, filter, Boolean::class),
"text_styles" to values.subContextFor(defaultMode, filter, FigExTextStyle::class),
"icons" to components.map { it.toContext() }
"icons" to components.map { it.toContext() }.filter { filter(filter = filter, context = it) }
) + createTemplateContext(file)

internal fun String.toNameObject() = mapOf(
Expand Down

0 comments on commit 8994650

Please sign in to comment.