hygen icon indicating copy to clipboard operation
hygen copied to clipboard

Add variables property to template frontmatter

Open ezhikov opened this issue 7 years ago • 3 comments

Hello.

So, my proposed solution to #61 is to add property variables to frontmatter. Other arguments have priority over variables. One thing that I'm uncertain with, if variables should be calculated depending on other variables.

If my solution satisfies you, I'll add relative section to docs and tests if you'llguide me on how to properly test this feature.

ezhikov avatar Oct 01 '18 16:10 ezhikov

@ezhikov any possibility to add tests? LMK if you need help with understanding how testing works here

jondot avatar Dec 06 '18 11:12 jondot

I think I do need guidance with tests.

ezhikov avatar Dec 06 '18 11:12 ezhikov

@ezhikov it's very simple. Look at other test a try to do the same. If you don't have any experience with unit testing and test tools, I highly recommend to read jest docs. This framework provide the most of important testing conceptions and you can learn really a lot of cool things 👍

epszaw avatar Dec 07 '18 06:12 epszaw