-
Notifications
You must be signed in to change notification settings - Fork 10
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
Make front-matter label var optional #58
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 🎉
Should we get a test case for this? Basically make sure that both defaults work, but also providing overrides would work? (or doesn't? not sure what would be expected in these cases, but tests would help make it clear 👌 )
const letters = 'abcedfghijklmnopqrstuvwxyz'; | ||
let short = [], rand = 0; | ||
|
||
for (let n = 0; n < size; n = n + 1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a forEach
or map
might be nice here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But then it has to pick random letters in order. That isn't random. This a popular one from stackoverflow that I've used for multiple projects(albeit usually with multiple cases and numbers).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nm, size is an int
😊
New Changes
Don't let the number of files deceive you, most are part of the new fixture for seven different tests and 2 files were just being reverted back to their original state. Again, with all these PRs merged, it would be a lot easier to sort out the tests. |
A thought, maybe we shouldn't revert the default template markdown. Instead, we should update their tests so that the front-matter var is no longer used by default(without default template markdown pages). |
… page for testing override fm var
I set all the mock-app pages to no longer use the front-matter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏 🏆
const letters = 'abcedfghijklmnopqrstuvwxyz'; | ||
let short = [], rand = 0; | ||
|
||
for (let n = 0; n < size; n = n + 1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nm, size is an int
😊
README.md
Outdated
# Helloworld | ||
``` | ||
```` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be only be 3 ticks (`) in markdown?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I was confused because we used 4 when we had to show a render block within the markdown as an example.
e.g.
```render
<style>${CSS}</style>
<my-component></my-component>
```
] | ||
loader: 'wc-markdown-loader', | ||
options: { | ||
graph |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's like magic ✨
Related Issue
Resolves #30
Summary of Changes
graph:[]
within the wc-markdown-loader's advanced optionsBecause of the bug in #54, the root route doesn't appear to be rendering correctly. I suggest you run
yarn install && yarn serve
then check http://localhost:8000/hello to see it works and then take a look at source html to see it's using a generated element label with the page-template.This will fail the test because it's looking for
wc-md-hello
which doesn't exist with generated labels like:wc-md-rjrwbq
for example. This is because I just removed it from the var from template for now, we can add it back once you've tried it out.