Answer the question
In order to leave comments, you need to log in
Why are styles not being applied to the element in the bemhtml.js template?
Hello!
Dear bem-experts, please help me to understand the following question.
There is a page block described in index.bemjson.js:
module.exports = {
block: 'page',
title: 'Test.ru | index',
favicon: '/favicon.ico',
head: [
{ elem: 'meta', attrs: { name: 'description', content: '' } },
{ elem: 'meta', attrs: { name: 'viewport', content: 'width=device-width, initial-scale=1' } },
{ elem: 'css', url: '//fonts.googleapis.com/css?family=Open+Sans:400,300,600&subset=cyrillic,latin' },
{ elem: 'css', url: 'index.min.css' }
],
scripts: [{ elem: 'js', url: 'index.min.js' }],
mods: { theme: 'testtheme' },
mix: { block: 'container' },
content: 'wrapper goes here'
};
block('page')(
content()(function () {
return [
{
elem: 'wrapper',
content: this.ctx.content
}
];
})
)
.page__wrapper {
background: #fff;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question