.. include:: Images.txt .. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. .. ================================================== .. DEFINE SOME TEXTROLES .. -------------------------------------------------- .. role:: underline .. role:: typoscript(code) .. role:: ts(typoscript) :class: typoscript .. role:: php(code) Usage ----- :: page.includeCSS { bootstrap = fileadmin/bootstrap/sass/bootstrap.scss bootstrap.outputfile = fileadmin/bootstrap/css/mybootstrap.css } Variables --------- You can set sass variables in typoscript in template setup part of your template: :: plugin.tx_wsscss.variables { var1 = #000 var2 = #666 } If you combine *outputfile* and variables you can create different bootstrap styles with same files. Output Style ------------ It’s possible to customize the formatting of the output CSS by changing the style. - expanded - compressed :: page.includeCSS { bootstrap = fileadmin/bootstrap/sass/bootstrap.scss bootstrap.outputStyle = expanded } Source Map ---------- You can enable the source map :: page.includeCSS { bootstrap = fileadmin/bootstrap/sass/bootstrap.scss bootstrap.sourceMap = true } For developing it is practical, if you force to render the template (switch off the TYPO3 template cache). Then the scss files will be compiled after modification and you can see the result of your changes. Go into your backend user settings and use this command: |img-3| Credits ------- Sven Wappler. `TYPO3 Agentur Aachen `_