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

Update browser usage #755

Merged
merged 1 commit into from
Nov 1, 2020
Merged

Update browser usage #755

merged 1 commit into from
Nov 1, 2020

Conversation

obedparla
Copy link
Contributor

After trying to use Twig on the browser with twig({...}) and getting ReferenceError: twig is not defined I realized I needed to do Twig.twig({...}) instead.

If this not always the case let me know so I can improve the documentation in this regard.

It can be seen happening here: https://jsbench.me/6gkgwawsrs/1. Notice the import from unpkg.

After trying to use Twig on the browser with `twig({...})` and getting ` ReferenceError: twig is not defined` I realized I needed to do `Twig.twig({...})` instead. 

If this not always the case let me know so I can improve the documentation in this regard.
@RobLoach RobLoach merged commit 4219b3a into twigjs:master Nov 1, 2020
@obedparla
Copy link
Contributor Author

That was a damn fast merge. Cheers!

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

Successfully merging this pull request may close these issues.

2 participants