-
Notifications
You must be signed in to change notification settings - Fork 338
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
Allow metadata specification in document using YAML front matter #39
Comments
The key design question is how to override options. By allowing YAML front matter in the document, I am allowing the user three options to specify metadata
Are so many options really needed? If I follow the philosophy of |
In order to keep Ideas
|
Here are some more thoughts on the order in which configuration options can be checked
get_slidify_config <- function(options){
deck <- get_slidify_defaults()
if (!is.null(options)){
if (is.list(options)){
deck <- modifyList(deck, options)
} else if(file.exists(options)){
deck <- modifyList(deck, yaml.load_file(options))
}
}
} |
The more I think of it, it appears that rendering a title slide is a specific instance of a template. So the user can specify any arbitrary parameters in the YAML front matter which will be available to use. |
I think it would be useful to allow a metadata block in the document where the title, author and date can be specified. I have two options on how to go about it. The main tradeoff is simplicity vs. extensibility. The
pandoc
style title blocks are very simple, but lack the ability to be extended. Thejekyll
orMMD
style YAML front matter provides a lot of flexibility in the metadata that can be provided.I think I am going to go with
YAML
front matter, due to the flexibility it offers. I need to think about importingYAML
or just leaving it as a suggested package.Pandoc Style Title Blocks
YAML Front Matter
The text was updated successfully, but these errors were encountered: