Make an .eslintrc
file in your project directory:
// Use this file as a starting point for your project's .eslintrc.
// Copy this file, and add rule overrides as needed.
{
"extends": "airbnb"
}
Run this cmd
in your shell:
// setting up the standard layout | |
var handlebars = require('express-handlebars') | |
.create({defaultLayout: 'main' }); | |
// To use the default layout with a view | |
app.get('/foo', function(req, res) { | |
res.render('foo'); | |
}); |
//////////////////// | |
// Partials Example | |
//////////////////// | |
<div class="weatherWidget"> | |
{{#each partials.weatherContext.locations}} | |
<div class="location"> | |
<h3>{{name}}</h3> | |
<a href="{{forecastUrl}}"> | |
<img src="{{iconUrl}}" alt="{{weather}}"> |
Make an .eslintrc
file in your project directory:
// Use this file as a starting point for your project's .eslintrc.
// Copy this file, and add rule overrides as needed.
{
"extends": "airbnb"
}
Run this cmd
in your shell:
I hereby claim:
To claim this, I am signing this object:
function ProviderComposer({ contexts, children }) { | |
return contexts.reduceRight( | |
(kids, parent) => | |
React.cloneElement(parent, { | |
children: kids, | |
}), | |
children | |
); | |
} |
-- code for https://youtu.be/tp_5c6jaNQE | |
create table users ( | |
id serial primary key, | |
first_name varchar(255) not null, | |
last_name text, | |
age int, | |
email text unique not null | |
); |