Pug
- 1 ответ
- 0 вопросов
1
Вклад в тег
let pages = glob.sync(__dirname + '/source/pages/*.pug');
pages.forEach(function (file) {
let base = path.basename(file, '.pug');
pluginsOptions.push(
new HtmlWebpackPlugin({
filename: './' + base + '.html',
template: './pages/' + base + '.pug',
inject: true
})
)
});
..........
plugins: pluginsOptions
SELECT
a.firstName, p.name,
COUNT(ab.author_id) AS total
FROM
books AS b
JOIN
publish_book AS pb
ON
pb.book = b.uid
JOIN
author_book AS ab
ON
b.uid = ab.book_id
JOIN
authors AS a
ON
ab.author_id = a.uid
JOIN
publishing as p
ON
p.uid = pb.publish
WHERE
p.id = 4 AND
YEAR(b.pubDate) = 2016
GROUP BY
ab.author_id
ORDER BY
total DESC
LIMIT 10