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

Named widget snippet not recognized #209

Closed
davidandrzej opened this issue Aug 29, 2013 · 2 comments
Closed

Named widget snippet not recognized #209

davidandrzej opened this issue Aug 29, 2013 · 2 comments

Comments

@davidandrzej
Copy link

I was attempting to port my mathjax setup to 2.x (for 1.x I had used this approach), I attempted to follow the documentation but this configuration was not recognized:

  • widgets/mathjax/mathjax.html
  • {{{ widgets.mathjax.mathjax }}}

However, it did work with

  • widgets/mathjax/default.html
  • {{{ widgets.mathjax }}}
    which I reverse-engineered out of the unit tests (yay!)

User error or bug?

I had cloned at 3c4a80eef9c4e289fcca8bcb230f9febb6ee2455

@plusjade
Copy link
Member

@davidandrzej as per the docs (I had to look myself heh) http://ruhoh.com/docs/2/widgets/

To use the "mathjax.html" snippet you would have to define that in config.yml. By default, all widgets use the "default.html" snippet template.

#config.yml
widgets :
  mathjax :
    use : mathjax

Now calling {{{ widgets.mathjax }}} will load the "mathjax.html" snippet template.

Widgets are a tricky thing still. I'm very eager to get feedback on the overall design as I think they have a long way to go but overall the problem is a hard one.

Let me know if that helps and also please keep me in the loop with your mathjax progress -- I definitely want to get support for that as lots of users seem to be data science types =)

@davidandrzej
Copy link
Author

Ah user error it is then, thanks for clearing that up.

Cobbling together that previous discussion I was able to get a satisfactory mathjax setup - I've documented that (and other minor tweaks) on my README.

Thanks again for the helpful explanation and all the work on this tool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants