Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F57029596
is.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
600 B
Referenced Files
None
Subscribers
None
is.js
View Options
/**
* Block helper that renders a block if `a` is **equal to** `b`.
* If an inverse block is specified it will be rendered when falsy.
*
* From http://assemble.io/helpers/, under MIT license.
*
* @name .is
* @param {any} `a`
* @param {any} `b`
* @param {Object} `options` Handlebars provided options object
* @return {String}
* @block
* @api public
*/
module
.
exports
=
function
(
a
,
b
,
options
)
{
if
(
arguments
.
length
===
2
)
{
options
=
b
;
b
=
options
.
hash
.
compare
;
}
if
(
a
===
b
)
{
return
options
.
fn
(
this
);
}
return
options
.
inverse
(
this
);
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 06:01 (6 d, 22 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4258523
Default Alt Text
is.js (600 B)
Attached To
Mode
rEGLIDEWWWDSGN Eglide web site design
Attached
Detach File
Event Timeline
Log In to Comment