- Learning Less.js
- Alex Libby
- 193字
- 2021-09-03 09:38:08
Creating the foundation page
Now that we have downloaded the library, the next stage is to set up our base project that we can reuse throughout this book. This is going to be a simple HTML5 document, which will contain the basic skeleton we will need for our projects.
For my code editor, I will be using Sublime Text 2, for which we set up support for Less back in Chapter 2, Building a Less Development Toolkit. This is available for download from Sublime Text's website at http://www.sublimetext.com/2, although you can use whichever editor you are most comfortable with.
Let's start by creating our base project file. In a new folder called lessjs
, create a new file and add the following code:
<!DOCType html> <head> <meta charset="utf-8"> <title>Untitled</title> <link rel="stylesheet/less" href="css/project.less"> </head> <body> </body> </html>
Tip
Downloading the example code
You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.
Save this as project.html
. We'll make reference to this throughout the book and it will be the basis for each of our projects when using Less.
- 觸摸屏實(shí)用技術(shù)與工程應(yīng)用
- 深入理解Spring Cloud與實(shí)戰(zhàn)
- SDL Game Development
- 深入淺出SSD:固態(tài)存儲(chǔ)核心技術(shù)、原理與實(shí)戰(zhàn)
- Learning Stencyl 3.x Game Development Beginner's Guide
- 電腦軟硬件維修從入門(mén)到精通
- 分布式微服務(wù)架構(gòu):原理與實(shí)戰(zhàn)
- The Deep Learning with Keras Workshop
- 微型計(jì)算機(jī)系統(tǒng)原理及應(yīng)用:國(guó)產(chǎn)龍芯處理器的軟件和硬件集成(基礎(chǔ)篇)
- VMware Workstation:No Experience Necessary
- Hands-On Motion Graphics with Adobe After Effects CC
- Blender Game Engine:Beginner's Guide
- 電腦橫機(jī)使用與維修
- 微服務(wù)實(shí)戰(zhàn)
- FPGA實(shí)戰(zhàn)訓(xùn)練精粹