Skip to content

Add template engine#200

Merged
nikoksr merged 14 commits intomasterfrom
add-template-engine
Nov 20, 2020
Merged

Add template engine#200
nikoksr merged 14 commits intomasterfrom
add-template-engine

Conversation

@nikoksr
Copy link
Copy Markdown
Collaborator

@nikoksr nikoksr commented Nov 20, 2020

Summary

Add a template engine which enables proji to create files from templates with dynamic content. We're using fasttemplate as core engine for our templates.

Proposed Changes

  • Add template engine
  • Fix project replacement

Resolved Issues

Closes #131

dependabot bot and others added 12 commits August 3, 2020 08:02
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](spf13/viper@v1.7.0...v1.7.1)

Signed-off-by: dependabot[bot] <support@github.com>
…/spf13/viper-1.7.1' into add-template-engine
Template engine type is now visible from outside the package and the
CreateFilesInProjectFolder function now belongs it.
Project replacement was buggy. It was triggered when the root folder of
the project already exists and when a project was already assigned to
this path in the database. Additionally the replacement didn't work even
when triggered correctly.
First of all this shouldn't trigger at all when the folder already
exists, for safety purposes it should just skip the project creation and
print a warning that the folder already exists. This is so that folders
are not overwritten by accident.
And secondly when the folder creation was successful but a project was
already assigned to this path in database and the user wanted to replace
the assigned project with the freshly created one it would fail because
'suddenly' the project folder already exists.
@nikoksr nikoksr merged commit 7625dd1 into master Nov 20, 2020
@nikoksr nikoksr deleted the add-template-engine branch November 20, 2020 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a template engine

1 participant