Skip to content

Instantly share code, notes, and snippets.

@sequitur
Created May 19, 2015 05:43
Show Gist options
  • Save sequitur/7e7b0e6cea7f38d44c57 to your computer and use it in GitHub Desktop.
Save sequitur/7e7b0e6cea7f38d44c57 to your computer and use it in GitHub Desktop.
Using multiple source files with Raconteur
# 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