-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Only render jinja inside of docs blocks in .md files #988
Comments
If you want to keep the
not elegant but works |
hey @foundinblank - thanks for the report! So, these I think we should use this issue to describe the context available in docs blocks, which is currently not defined anywhere. |
I don't mind taking a crack at this at some point. We're working on our documentation so it could be useful. @drewbanin it could be useful for the |
@alanmcruickshank that sounds like a good idea to me! |
I think I misunderstood this issue when I first commented on it! Two things are true:
So, something like:
should be rendered exactly as written. Something else like:
should be rendered with some well-defined context. TBD if this makes it into the Wilt Chamberlain milestone, but if not, we'll slip it in for the next one! |
…blocks Only parse docs blocks contents when reading md files (#988)
Issue
Issue description
When Jinja code exists in a README file, such as
{{ ref(table_name) }}
, dbt attempts to run it and returns a crypticEncountered an error: 'ref' is undefined
error.Results
Error is thrown due to Jinja code in README files. Normally I'd have expected dbt to ignore code in README files.
System information
The output of
dbt --version
:The operating system you're running on: OSX 10.13.6
The python version you're using (probably the output of
python --version
): Python 3.5.4Steps to reproduce
A regular README.md file, e.g.,
dbt will attempt to run
ref(table_name)
.The text was updated successfully, but these errors were encountered: