Skip to content

Как переиспользовать шаблоны из других директорий? #83

@nikartx

Description

@nikartx

Привет!

Условно, есть у меня в recipe запись вида:

- instantiate:
        from: root/src/ViewModel.kt.ftl
        to: ${srcOut}/${viewModelName}.kt

Путь к шаблону VM - templates/Fragment/root/src/ViewModel.kt.ftl

А я хочу брать шаблон VM из директории templates/ViewModel/root/src/ViewModel.kt.ftl вместо root/src/ViewModel.kt.ftl. Как это сделать? Подход from: ${templatesRootDirPath}/ViewModel/root/src/ViewModel.kt.ftl увы не работает.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions