Custom filters
Opened this issue · 0 comments
mihai-vlc commented
Hello,
I was trying to play with some custom filters.
I did manage to get this one working in sublime text 3
emmet.require('filter/main.js').add('php', function(tree) {
tree.children.forEach(function(node) {
// define variable name
node.start = '\\$' + node.name();
// define object keys
var className = node.attribute('class');
if (className) {
node.start += className
.split(' ')
.map(function(c) {return "['" + c + "']";})
.join('');
}
node.end = '';
});
});
however it doesn't seem to work in eclipse.
Is the error displayed somewhere (in sublime I had the console) ?