Skip to content

Instantly share code, notes, and snippets.

@arimado
Last active May 2, 2016 04:48
Show Gist options
  • Save arimado/dcce073a58fa82b97d8e55fbbd489814 to your computer and use it in GitHub Desktop.
Save arimado/dcce073a58fa82b97d8e55fbbd489814 to your computer and use it in GitHub Desktop.
testHelperParam #####################
THIS------------------
{
settings: {
'x-powered-by': true,
etag: 'weak',
'etag fn': [
Function: wetag
],
env: 'development',
'query parser': 'extended',
'query parser fn': [
Function: parseExtendedQueryString
],
'subdomain offset': 2,
'trust proxy': false,
'trust proxy fn': [
Function: trustNone
],
view: [
Function: View
],
views: '/Users/jeremy/localdev/notes/code-notes-js/JavaScript/node/book-brown/meadowlark/site/views',
'jsonp callback name': 'callback',
'view engine': 'handlebars',
port: 3000
},
showTests: false,
locations: [
{
name: 'Portland',
forecastUrl: 'http://www.wunderground.com/US/OR/Portland.html',
iconUrl: 'http://icons-ak.wxug.com/i/c/k/cloudy.gif',
weather: 'Overcast',
temp: '54.1 F (12.3 C)'
},
{
name: 'Bend',
forecastUrl: 'http://www.wunderground.com/US/OR/Bend.html',
iconUrl: 'http://icons-ak.wxug.com/i/c/k/partlycloudy.gif',
weather: 'Partly Cloudy',
temp: '55.0 F (12.8 C)'
},
{
name: 'Manzanita',
forecastUrl: 'http://www.wunderground.com/US/OR/Manzanita.html',
iconUrl: 'http://icons-ak.wxug.com/i/c/k/rain.gif',
weather: 'Light Rain',
temp: '55.0 F (12.8 C)'
}
],
_locals: {
showTests: false
},
cache: false,
body: '<h1>Welcome to Meadowlark Travel</h1>\n<div class="weatherWidget">\n <div class="location">\n <h3>Portland</h3>\n <a href="http://www.wunderground.com/US/OR/Portland.html">\n <img src="http://icons-ak.wxug.com/i/c/k/cloudy.gif" alt="Overcast">\n Overcast, 54.1 F (12.3 C)\n </a>\n </div>\n <div class="location">\n <h3>Bend</h3>\n <a href="http://www.wunderground.com/US/OR/Bend.html">\n <img src="http://icons-ak.wxug.com/i/c/k/partlycloudy.gif" alt="Partly Cloudy">\n Partly Cloudy, 55.0 F (12.8 C)\n </a>\n </div>\n <div class="location">\n <h3>Manzanita</h3>\n <a href="http://www.wunderground.com/US/OR/Manzanita.html">\n <img src="http://icons-ak.wxug.com/i/c/k/rain.gif" alt="Light Rain">\n Light Rain, 55.0 F (12.8 C)\n </a>\n </div>\n <small>Source: <a href="http://www.wunderground.com"> WeatherUnderground </a></small>\n</div>\n'
}
------------------------
P1------------------
'testParam'
------------------------
P2------------------
{
name: 'testHelperParam',
hash: {
},
fn: {
[
Function: prog
]program: 3,
depth: 0,
blockParams: 0
},
inverse: [
Function: noop
],
data: {
exphbs: {
cache: false,
view: 'home',
layout: undefined,
data: undefined,
helpers: [
Object
],
partials: [
Object
],
filePath: '/Users/jeremy/localdev/notes/code-notes-js/JavaScript/node/book-brown/meadowlark/site/views/layouts/main.handlebars'
},
_parent: {
exphbs: [
Object
]
},
root: {
settings: [
Object
],
showTests: false,
locations: [
Object
],
_locals: [
Object
],
cache: false,
body: '<h1>Welcome to Meadowlark Travel</h1>\n<div class="weatherWidget">\n <div class="location">\n <h3>Portland</h3>\n <a href="http://www.wunderground.com/US/OR/Portland.html">\n <img src="http://icons-ak.wxug.com/i/c/k/cloudy.gif" alt="Overcast">\n Overcast, 54.1 F (12.3 C)\n </a>\n </div>\n <div class="location">\n <h3>Bend</h3>\n <a href="http://www.wunderground.com/US/OR/Bend.html">\n <img src="http://icons-ak.wxug.com/i/c/k/partlycloudy.gif" alt="Partly Cloudy">\n Partly Cloudy, 55.0 F (12.8 C)\n </a>\n </div>\n <div class="location">\n <h3>Manzanita</h3>\n <a href="http://www.wunderground.com/US/OR/Manzanita.html">\n <img src="http://icons-ak.wxug.com/i/c/k/rain.gif" alt="Light Rain">\n Light Rain, 55.0 F (12.8 C)\n </a>\n </div>\n <small>Source: <a href="http://www.wunderground.com"> WeatherUnderground </a></small>\n</div>\n'
}
}
}
------------------------
testHelperNoParam ##################
THIS------------------
{
settings: {
'x-powered-by': true,
etag: 'weak',
'etag fn': [
Function: wetag
],
env: 'development',
'query parser': 'extended',
'query parser fn': [
Function: parseExtendedQueryString
],
'subdomain offset': 2,
'trust proxy': false,
'trust proxy fn': [
Function: trustNone
],
view: [
Function: View
],
views: '/Users/jeremy/localdev/notes/code-notes-js/JavaScript/node/book-brown/meadowlark/site/views',
'jsonp callback name': 'callback',
'view engine': 'handlebars',
port: 3000
},
showTests: false,
locations: [
{
name: 'Portland',
forecastUrl: 'http://www.wunderground.com/US/OR/Portland.html',
iconUrl: 'http://icons-ak.wxug.com/i/c/k/cloudy.gif',
weather: 'Overcast',
temp: '54.1 F (12.3 C)'
},
{
name: 'Bend',
forecastUrl: 'http://www.wunderground.com/US/OR/Bend.html',
iconUrl: 'http://icons-ak.wxug.com/i/c/k/partlycloudy.gif',
weather: 'Partly Cloudy',
temp: '55.0 F (12.8 C)'
},
{
name: 'Manzanita',
forecastUrl: 'http://www.wunderground.com/US/OR/Manzanita.html',
iconUrl: 'http://icons-ak.wxug.com/i/c/k/rain.gif',
weather: 'Light Rain',
temp: '55.0 F (12.8 C)'
}
],
_locals: {
showTests: false
},
cache: false,
body: '<h1>Welcome to Meadowlark Travel</h1>\n<div class="weatherWidget">\n <div class="location">\n <h3>Portland</h3>\n <a href="http://www.wunderground.com/US/OR/Portland.html">\n <img src="http://icons-ak.wxug.com/i/c/k/cloudy.gif" alt="Overcast">\n Overcast, 54.1 F (12.3 C)\n </a>\n </div>\n <div class="location">\n <h3>Bend</h3>\n <a href="http://www.wunderground.com/US/OR/Bend.html">\n <img src="http://icons-ak.wxug.com/i/c/k/partlycloudy.gif" alt="Partly Cloudy">\n Partly Cloudy, 55.0 F (12.8 C)\n </a>\n </div>\n <div class="location">\n <h3>Manzanita</h3>\n <a href="http://www.wunderground.com/US/OR/Manzanita.html">\n <img src="http://icons-ak.wxug.com/i/c/k/rain.gif" alt="Light Rain">\n Light Rain, 55.0 F (12.8 C)\n </a>\n </div>\n <small>Source: <a href="http://www.wunderground.com"> WeatherUnderground </a></small>\n</div>\n'
}
------------------------
P1------------------
{
name: 'testHelperNoParam',
hash: {
},
fn: {
[
Function: prog
]program: 3,
depth: 0,
blockParams: 0
},
inverse: [
Function: noop
],
data: {
exphbs: {
cache: false,
view: 'home',
layout: undefined,
data: undefined,
helpers: [
Object
],
partials: [
Object
],
filePath: '/Users/jeremy/localdev/notes/code-notes-js/JavaScript/node/book-brown/meadowlark/site/views/layouts/main.handlebars'
},
_parent: {
exphbs: [
Object
]
},
root: {
settings: [
Object
],
showTests: false,
locations: [
Object
],
_locals: [
Object
],
cache: false,
body: '<h1>Welcome to Meadowlark Travel</h1>\n<div class="weatherWidget">\n <div class="location">\n <h3>Portland</h3>\n <a href="http://www.wunderground.com/US/OR/Portland.html">\n <img src="http://icons-ak.wxug.com/i/c/k/cloudy.gif" alt="Overcast">\n Overcast, 54.1 F (12.3 C)\n </a>\n </div>\n <div class="location">\n <h3>Bend</h3>\n <a href="http://www.wunderground.com/US/OR/Bend.html">\n <img src="http://icons-ak.wxug.com/i/c/k/partlycloudy.gif" alt="Partly Cloudy">\n Partly Cloudy, 55.0 F (12.8 C)\n </a>\n </div>\n <div class="location">\n <h3>Manzanita</h3>\n <a href="http://www.wunderground.com/US/OR/Manzanita.html">\n <img src="http://icons-ak.wxug.com/i/c/k/rain.gif" alt="Light Rain">\n Light Rain, 55.0 F (12.8 C)\n </a>\n </div>\n <small>Source: <a href="http://www.wunderground.com"> WeatherUnderground </a></small>\n</div>\n'
}
}
}
------------------------
P2------------------
undefined
------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment