Skip to content

Use template comment syntax for header & footer placeholders #2138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 22, 2020

Conversation

jdkoren
Copy link
Contributor

@jdkoren jdkoren commented Jan 22, 2020

Different formats have different comment syntax, so use template comment syntax for these placeholders instead of html syntax. If no content is passed to replace them, the placeholders will not appear in the output files.

@googlebot googlebot added the cla: yes Google CLA check succeeded. label Jan 22, 2020
@jdkoren jdkoren requested a review from jcollins-g January 22, 2020 18:02
const String _headerPlaceholder = '<!-- header placeholder -->';
const String _footerPlaceholder = '<!-- footer placeholder -->';
const String _footerTextPlaceholder = '<!-- footer-text placeholder -->';
const String _headerPlaceholder = '{{! header placeholder }}';
Copy link
Contributor

@jcollins-g jcollins-g Jan 22, 2020

Choose a reason for hiding this comment

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

Might be worth a TODO for replacePlaceholder to port these to mustache rather than using our own template substitutions. A typo in the template would be less easy to miss that way.

@jdkoren jdkoren merged commit be99a5c into dart-lang:master Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants