-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Proposition : default block definition & class def in block #122
Comments
The idea of the current solution was to support the user on setting missed placeholders. Im not a fan for configuration in templates. It makes using templates more complicated and more it doesnt support the user of the template on configuration. I would suggest to use composition to solve your problem (i do it for my templates too). My templates are hierachical. I have a tpl-50-50 template that creates a 50% 50% view with a title and two placeholders left and right and a footer. Most of the time i use a default footer. therefore i've created another template tpl-50-50-default that implements the footer placeholder. Therefore i always use the default variant of my template and if i need a special footer, i delete the -default suffix and advanced slides will tell me that there are placeholders that have to be filled ;-) I dont need to remember the variable i have to configure or get unfocused because i have to study the template file finding out what i have to configure. Another benefit of this solution is that you have more control, since you could define defaults on slide based, not as in your solution on deck base |
hum. ... Not sure we understand each other. Therefore the configuration would not be on the templates but on the markdown slide front matter. cheers. |
I understood your approach and as i wrote it's possible to solve your problem by composition and i would recommended it. |
hi again, I really do not think your proposal could work for my need. I do not need global default (like e.g. copyright) but data repeated across slide in the context of one presentation. If i use templated "tpl-*-default" it would mean I need to edit all the used "-default" emplate to change the date for instance. The workaround I found is to write on top of the md file : <style>
.lfoot:after {
content: "Star Formation worckshop - San Francisco 12 Nov 2022 ";
}
.rfoot:after {
content: "My Name";
}
</style> Where Basically one of my template looks like this:
As for the original proposal 2., I though it could facilitate the writing and reading. Cheers. |
Could this be part of the properties instead of templates? |
Hello,
Thanks again to this amazing plugin.
I have two propositions :
Define the default of a block somewhere, (probably in front-mater ?).
If a template block is not set in a slide, but defined in template, the default text is displayed (instead of the
<% block_name %>
)This would allow to automatically fill default information such as author, date, meeting name, add logos, etc without editing the core templates which are focused to layouts the content.
Maybe something like this in presentation md front-matter:
The block
footer
,topleft
,title
would be defined in templates.or
Would be equivalent to
The text was updated successfully, but these errors were encountered: