Comments (3)
Красивый HTML можно получить, прогнав через любой внешний форматтер, например, tidy.
29 нояб. 2011, в 17:06, banzalik [email protected] написал(а):
Сейчас выводимый html файл не содержит форматирования.
Хочется иметь возможность получать "красивый" html.
Необходимо для удобного распиливая html на куски, и нормального diffa.
Reply to this email directly or view it on GitHub:
#21
from bem-tools.
с форматированием есть небольшие концептуальные проблемы -- строго говоря, в bemhtml шаблонах может содержаться html-строка целиком и её никак не отформатировать
можно добавить форматирование для тех тегов, которые выводятся через базовые шаблоны -- но правильнее, всё-таки, постпроцессить уже построенный html (возможно придётся написать свой преттипринтер, если tidy не учитывает значимые пробельные символы)
from bem-tools.
@banzalik, попробуй tidy и напиши, устраивает ли результат?
from bem-tools.
Related Issues (20)
- bem-tools 8.x and Creating subcommands HOT 1
- .borschik конфиг для api в виде параметра HOT 2
- Use tech-name.css for all preprocessors techs
- Feedback for "Команды" HOT 4
- live reload for bem server HOT 2
- Incorrect link in documentation HOT 1
- Feedback for "Зависимости" HOT 2
- Support incremental builds HOT 4
- Feedback for "Установка" HOT 1
- Feedback for "Зависимости" HOT 1
- Feedback for "Установка" HOT 3
- v2 MODULE_NOT_FOUND HOT 6
- Plugins does not work when installed globally HOT 4
- Feedback for "Зависимости" HOT 1
- Feedback for "Настройка" HOT 2
- Monorepo HOT 4
- Move to bem-tools organization HOT 1
- System & Structure
- ошибка в адресе ссылки, и ещё одна в js
- Отображение примеров в документации HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bem-tools.