Created
May 19, 2015 05:43
-
-
Save sequitur/7e7b0e6cea7f38d44c57 to your computer and use it in GitHub Desktop.
Using multiple source files with Raconteur
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In your main.coffee file | |
require('./situations.coffee') # File path relative to this file. | |
# In situations.coffee | |
situation = require('raconteur') # Import the main Raconteur factory | |
situation 'my-situation', | |
content: """ | |
We build our situation like we would normally. | |
""" | |
# We don't need to export anything; situation() will marshall the situation we | |
# created into Undum for us. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment