-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#MmLRZ2E2] [#MmLRZ2E2] [#MmLRZ2E2] Make README less opinionated, add…
… UMD definition - Make the README less opinionated about how to use the module - Add to README: DOM element, jQuery element or selector stings as ways to select the element. - Add information about default template to README - Add details about configuration options to README - Add UMD definition to module Branch: MmLRZ2E2-development Branch: MmLRZ2E2-development Branch: MmLRZ2E2-development
- Loading branch information
Showing
2 changed files
with
42 additions
and
27 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// This JavaScript module is exported as UMD following the pattern which can be | ||
// found here: https://github.com/umdjs/umd/blob/master/returnExports.js | ||
|
||
(function (root, factory) { | ||
if (typeof define === 'function' && define.amd) { | ||
define(['b'], factory); | ||
} else if (typeof exports === 'object') { | ||
module.exports = factory(require('b')); | ||
} else { | ||
root.returnExports = factory(root.b); | ||
} | ||
}(this, function (b) { | ||
|
||
// Module code here | ||
|
||
return {}; | ||
})); |
I think the placeholder element should be a neutral block-level element like
<div>
to allow for the most flexibility of what is included inside the templates.