let foo = true;
`hello ${foo ? `Mr ${name}` : 'there'}`;
foo = false;
html`
Hello world
`;
kitten.html`Hello world
`;
html`Hello times ${10} world
`;
html`
${repeat(['a', 'b', 'c'], (v) => {
return html`- ${v}
`;
}}
`;
css`
body {
color: red;
}
`;
kitten.css`
body {
color: red;
}
`;
gql`query { viewer { id } }`;
kitten.gql`query { viewer { id } }`;
gql`
type Project {
name: String
tagline: String
contributors: [User]
}
`;
// Ensure that we're back in JavaScript mode.
var foo = 10;