1.0.3 • Published 6 years ago

basix-bootstrap-views v1.0.3

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
6 years ago

basix-bootstrap-views

Simple framework for splitting the HTML code into smaller parts, views.

Getting Started

Add Javascript references to the bottom within the body tag.

<script src="basix-bootstrap-views.js"></script>

Then, add references to the /config/config.js

var bxConfig = {

	// Add the filename here and then add the file into 'views' folder.
	views: [
		"navbar.view",
		"jumbotron.view",
		"table.view",
		"form.view",
		"well.view"
	],
	// Add the filename and then add the file into 'styles' folder.
	styles: [
		"custom.style"
	]

};

Then, add corresponding pages and styles into their own folders. Remember to name them as named in config.js

For example:
"navbar.view" -> /view/navbar.view

And finally, add tags that link to your view:

<bx-view id="nav.view"></bx-view>

Prerequisites

No prequisites

Creating styles

Style files need to have everything within their -tags.

<style>
body {background-color: white;}
</style>

Additional

Create your models and controllers and start coding!

Used With

Authors

  • Pasi Talvitie - Initial

License

This project is licensed under the General Public License - see the LICENSE file for details

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.8

6 years ago