Skip to content

Align Handlebars and EJS templating - #826

Merged
jvherweg merged 3 commits into
mainfrom
feat/container-listing-html
Jul 22, 2021
Merged

jvherweg merged 3 commits into
mainfrom
feat/container-listing-html

Conversation

@RubenVerborgh

@RubenVerborgh RubenVerborgh commented Jul 19, 2021 •

Copy link
Copy Markdown
Member

Closes #721

@RubenVerborgh RubenVerborgh added this to the v1.0.0 milestone Jul 19, 2021
@RubenVerborgh
RubenVerborgh requested a review from jvherweg July 19, 2021 14:32
@RubenVerborgh
RubenVerborgh force-pushed the feat/container-listing-html branch from 1257a7e to 2882431 Compare July 19, 2021 14:32
@RubenVerborgh
RubenVerborgh force-pushed the feat/container-listing-html branch from 2882431 to b610b3b Compare July 19, 2021 19:21
@RubenVerborgh
RubenVerborgh changed the base branch from main to fix/template-extension July 19, 2021 19:22
@RubenVerborgh

Copy link
Copy Markdown
Member Author

@joachimvh I rebased on #825 to resolve merge conflicts; please reset target to main after merging #825.

@RubenVerborgh
RubenVerborgh force-pushed the feat/container-listing-html branch from b610b3b to 8e27557 Compare July 19, 2021 19:32
@RubenVerborgh

Copy link
Copy Markdown
Member Author

Hmm the PR does not CI because it's set to only main; shall we change that?

@RubenVerborgh
RubenVerborgh force-pushed the feat/container-listing-html branch from 8e27557 to b133485 Compare July 19, 2021 19:52
@jvherweg

Copy link
Copy Markdown
Member

Hmm the PR does not CI because it's set to only main; shall we change that?

Yea I sometimes also run into that. I'm actually not sure why we have that CI rule, I don't think there's any way this can be abused right?

@jvherweg jvherweg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change request is for the typing changes, not the long style comment

.then((template: string): TemplateDelegate => compile(template));
}

public async render(contents: NodeJS.Dict<string>, template?: TemplateOptions): Promise<string> {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the engines are being updated, now would also be a good time to change this type to NodeJS.Dict<unknown> since more than just strings are supported.

@RubenVerborgh

RubenVerborgh commented Jul 20, 2021 •

Copy link
Copy Markdown
Member Author

Hmm the PR does not CI because it's set to only main; shall we change that?

Yea I sometimes also run into that.

232a47d

Comment thread src/index.ts Resolved
@RubenVerborgh
RubenVerborgh force-pushed the feat/container-listing-html branch 2 times, most recently from 77c5a91 to b5ec6cf Compare July 20, 2021 13:28
@jvherweg
jvherweg force-pushed the fix/template-extension branch 2 times, most recently from 3597858 to f19e626 Compare July 20, 2021 14:47
@RubenVerborgh
RubenVerborgh force-pushed the feat/container-listing-html branch 3 times, most recently from 43d1afb to 18be083 Compare July 20, 2021 18:50
@RubenVerborgh
RubenVerborgh requested a review from jvherweg July 20, 2021 18:51
@RubenVerborgh
RubenVerborgh force-pushed the feat/container-listing-html branch 2 times, most recently from bf274f8 to 285f1b1 Compare July 20, 2021 19:23
@RubenVerborgh RubenVerborgh changed the title Refactor: Allow default template in template engines Align Handlebars and EJS templating Jul 20, 2021
@RubenVerborgh
RubenVerborgh force-pushed the feat/container-listing-html branch from 45c08cd to 93a27e7 Compare July 20, 2021 19:46
@RubenVerborgh

Copy link
Copy Markdown
Member Author

@joachimvh Should TemplateEngine be an AsyncHandler? It could be, but I don't see a necessity.

@RubenVerborgh
RubenVerborgh force-pushed the feat/container-listing-html branch 2 times, most recently from 208c644 to 03db6bc Compare July 21, 2021 13:32
@RubenVerborgh
RubenVerborgh force-pushed the fix/template-extension branch from f19e626 to 540eadd Compare July 21, 2021 20:56
@RubenVerborgh
RubenVerborgh force-pushed the feat/container-listing-html branch from 03db6bc to 838b077 Compare July 21, 2021 20:56
@jvherweg
jvherweg force-pushed the fix/template-extension branch from 540eadd to cf28804 Compare July 22, 2021 06:59
@jvherweg

Copy link
Copy Markdown
Member

@joachimvh Should TemplateEngine be an AsyncHandler? It could be, but I don't see a necessity.

I think we already had the conversation in the past once and the conclusion was "no real reason to change right now".

Base automatically changed from fix/template-extension to main July 22, 2021 07:15
@jvherweg
jvherweg force-pushed the feat/container-listing-html branch 2 times, most recently from 6cd6bc2 to f9b05e3 Compare July 22, 2021 08:45

@jvherweg jvherweg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RubenVerborgh you can see my changes in TemplateEngine and the implementations (and .eslintrc.js)

@RubenVerborgh RubenVerborgh left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good, thanks!

Comment thread src/util/templates/EjsTemplateEngine.ts Resolved
@jvherweg
jvherweg force-pushed the feat/container-listing-html branch from f9b05e3 to f694fb7 Compare July 22, 2021 09:03
@jvherweg
jvherweg merged commit 1ad0387 into main Jul 22, 2021
@jvherweg
jvherweg deleted the feat/container-listing-html branch July 22, 2021 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Have 1 consistent solution for templates

3 participants