'use strict';

/*
 Example of using raml2md as a script.
 */

var raml2md = require('..');

// raml2md.render() needs a config object with at least a `template` property (a url to a Nunjucks template).
// Instead of creating this config object ourselves, we can just ask for raml2md.getDefaultConfig():
var config = raml2md.getDefaultConfig();

raml2md.render(__dirname + '/example.raml', config).then(function(result) {
  console.log(result);
}, function(error) {
  console.log('error! ', error);
});

@@ -83,16 +83,44 @@
 e('..');
+%0Avar path = require('path');
 %0A%0A// ram
@@ -381,16 +381,26 @@
 .render(
+path.join(
 __dirnam
@@ -404,13 +404,11 @@
 name
- +
+,
  '
-/
 exam
@@ -416,16 +416,17 @@
 le.raml'
+)
 , config

Fix example so it lints