Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Make rhino/handlebars code threadsafe #47

Closed
jvelo opened this issue Oct 28, 2013 · 1 comment
Closed

Make rhino/handlebars code threadsafe #47

jvelo opened this issue Oct 28, 2013 · 1 comment

Comments

@jvelo
Copy link
Owner

jvelo commented Oct 28, 2013

No description provided.

@ghost ghost assigned jvelo Oct 28, 2013
@jvelo
Copy link
Owner Author

jvelo commented Oct 28, 2013

The best course of action now that we have the FileWatcher/File events would be to :

  • Register all of a theme templates at init against the handlebars engine (in a namespace of the theme)
  • Update said templates when receiving file events that concern them
  • Synchronize the "register template" code block (it won't be called often anyway)
  • Leave the "render template" code block not synchronized : it does not modify the state of the registered templates

@jvelo jvelo closed this as completed in f347805 Dec 3, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant