how to reference a YAML “setting” from elsewhere in the same YAML file?

I have the following YAML: paths: patha: /path/to/root/a pathb: /path/to/root/b pathc: /path/to/root/c How can I “normalise” this, by removing /path/to/root/ from the three paths, and have it as its own setting, something like: paths: root: /path/to/root/ patha: *root* + a pathb: *root* + b pathc: *root* + c Obviously that’s invalid, I just made it … Read more

React.js: Wrapping one component into another

Many template languages have “slots” or “yield” statements, that allow to do some sort of inversion of control to wrap one template inside of another. Angular has “transclude” option. Rails has yield statement. If React.js had yield statement, it would look like this: var Wrapper = React.createClass({ render: function() { return ( <div className=”wrapper”> before … Read more

What is ng-transclude?

I have seen a number of questions on StackOverflow discussing ng-transclude, but none explaining in layman’s terms what it is. The description in the documentation is as follows: Directive that marks the insertion point for the transcluded DOM of the nearest parent directive that uses transclusion. This is fairly confusing. Would someone be able to … Read more