faustjs icon indicating copy to clipboard operation
faustjs copied to clipboard

Expand Doc Example of WP Templates

Open JEverhart383 opened this issue 3 years ago • 3 comments

You might consider expanding the example of template registration to include an example of a custom template. Seems like most people have been able to get here on their own, but I had to point this out to someone and it took a head scratch on my part to make the syntactic leap from shorthand.

Screen Shot 2023-01-20 at 10 52 33 AM

JEverhart383 avatar Jan 20 '23 15:01 JEverhart383

@JEverhart383 do you have an example on adding custom templates? I am currently stuck in this. Thanks!

andreitrinidad avatar Jan 24 '23 10:01 andreitrinidad

@andreitrinidad here is a quick gist. Basically, add the template using the right naming convention and then register it in wp-templates/index.js: https://gist.github.com/JEverhart383/48da4682e6125525570cbaec66c41539

JEverhart383 avatar Jan 24 '23 13:01 JEverhart383

Thanks @JEverhart383. We will try to add this when we finish working on the new faustjs.org docs

theodesp avatar May 09 '23 13:05 theodesp