var elements = query`.${className}`;var message = l10n`Hello ${name}; you are visitor number ${visitor}:n!| var RecursiveChildComponent = React.createClass({ | |
| render() { | |
| return <div> | |
| {this.recursiveCloneChildren(this.props.children)} | |
| </div> | |
| }, | |
| recursiveCloneChildren(children) { | |
| return React.Children.map(children, child => { | |
| if(!_.isObject(child)) return child; | |
| var childProps = {someNew: "propToAdd"}; |
| // this is now a module: | |
| // https://github.com/WebReflection/backtick-template#es2015-backticks-for-es3-engines-- | |
| var template = require('backtick-template'); | |
| // just string | |
| const info = 'template'; | |
| `some ${info}` === template('some ${info}', {info}); |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |