Skip to content
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

preprocess files only for set variables #117

Open
etiennewan opened this issue Aug 31, 2016 · 0 comments
Open

preprocess files only for set variables #117

etiennewan opened this issue Aug 31, 2016 · 0 comments

Comments

@etiennewan
Copy link

I would like to use preprocess as many times as I want to inject variables in my files when they are set, and keep the directives when a variable is undefined.

In my use case (take it as an example), I use preprocess for blog posts.
First, I create a post and I inject the title.
Then, when I finish writing the article, I ask to set the date and to set tags.
And between my final rewiew and the publish, I would like to set the URL for comments from an external service.

At each step, I would like only to preprocess directives when the variables that are echoed are set, and keep for future iterations the remaining directives.

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

No branches or pull requests

1 participant