-
Notifications
You must be signed in to change notification settings - Fork 76
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
Add support for multiple snippet base directories via configurable placeholders #60
Conversation
The use of dollar sign feels a bit ad-hoc to me. Could we just use |
Ultimately I don't have strong preference for a specific type of marker and picked the
|
With Paradox iiuc, the dollar-sign syntax only works within the |
Ok. Does anyone else (user, contributor or simply watcher) have an opinion on this? |
let's ping @pvlugter |
To sum up the question (for everyone caring to chip in): So far we have these suggestions:
|
One more idea:
That should be clear and concise enough. And we could allow for escaping the brackets if necessary. |
The I also don't have a strong preference for specific variable delimiters used, but do think that making it consistent and using the same defaults everywhere would be good. If we go all-in with StringTemplate style, then it could even use StringTemplate itself to do the replacements, in the vars directive or in base dirs or elsewhere. Or align with variable substitution standards that we often use, like Scala or Bash, and support both I think using markdown reference style of Making it as consistent as possible across the different places that variable substitution is used, so that it's obvious and easy to remember, would be most important to me. |
Ok, I think what is needed is a decision by the paradox core team on what the direction should be here. |
Since I've been using Pamflet for docs, personally I'm comfortable with the idea of going all-in on using StringTemplate. So:
Related, is it possible to unify |
Ok, sorry for not coming back earlier to this.
I'm not sure this would really make sense. For markdown files it might be good to also run them through
|
Sorry for taking so long to get this done! I'll submit another PR which replaces the |
Time has shown that the simple
snippet.base_dir
support that came in with 9afc38f isn't quite sufficient for my use-case (and likely others as well).For example, I'd like to refer to files in the
test
branch of mydoc
project as well as actual library code in the main project sources. In order to do this in a DRY and concise fashion this patch adds support for defining placeholders for snippet base directories that can be easily referred to where required.