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

如何引用根目录_config.yml自定义变量? #4198

Open
xfqwdsj opened this issue Mar 20, 2020 · 0 comments
Open

如何引用根目录_config.yml自定义变量? #4198

xfqwdsj opened this issue Mar 20, 2020 · 0 comments

Comments

@xfqwdsj
Copy link

@xfqwdsj xfqwdsj commented Mar 20, 2020

我在根目录的config中定义了一个自定义的变量
现在想在md文件中引用它 我是这样做的:

<script type="text/javascript">
AV.init({
	appId: "{{ config.mwordLC.appId }}",
	appKey: "{{ config.mwordLC.appKey }}",
	serverURLs: "{{ config.mwordLC.sURL }}"
})
</script>

但三个地方都没有数据:

<script type="text/javascript">
AV.init({
    appId: "",
    appKey: "",
    serverURLs: ""
})
</script>

配置:

mwordLC: 
  appId:( 我的id)
  appKey: (我的key)
  sURL: (一个url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.