All Projects → volfpeter → markyp-bootstrap4

volfpeter / markyp-bootstrap4

Licence: MIT license
Create Bootstrap 4 web pages using purely Python.

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to markyp-bootstrap4

smaller-sites
Smaller Sites is a small BUT Powerful, free and easy to use drag and drop builder for blogs, websites or e-commerce stores. Designed for everyone Developers and non Developers. You can use it to design your next website. The goal is to create something like webflow
Stars: ✭ 27 (+42.11%)
Mutual labels:  bootstrap4, bootstrap-4
hugo-lime
Hugo Lime is a business theme for GoHugo by https://uicard.io
Stars: ✭ 31 (+63.16%)
Mutual labels:  bootstrap4, bootstrap-4
bootstrap-4-boilerplate
Basic Bootstrap 4 Starter Template
Stars: ✭ 50 (+163.16%)
Mutual labels:  bootstrap4, bootstrap-4
laravel-bootstrap-toasts
Bootstrap Toast made easy for Laravel
Stars: ✭ 26 (+36.84%)
Mutual labels:  bootstrap4, bootstrap-4
startbootstrap-logo-nav
A Bootstrap navigation template with a logo in the navigation bar - created by Start Bootstrap
Stars: ✭ 65 (+242.11%)
Mutual labels:  bootstrap4, bootstrap-4
startbootstrap-portfolio-item
A Bootstrap portfolio item page template created by Start Bootstrap
Stars: ✭ 56 (+194.74%)
Mutual labels:  bootstrap4, bootstrap-4
chatApp
This is the chat application based on Javascript, html and bootstrap. This chat app use the firebase real time database.
Stars: ✭ 15 (-21.05%)
Mutual labels:  bootstrap4, html-css-javascript
Startbootstrap Sb Admin
Start Bootstrap is an open source library of free Bootstrap templates and themes. All of the free templates and themes on Start Bootstrap are released under the MIT license, which means you can use them for any purpose, even for commercial projects.
Stars: ✭ 2,861 (+14957.89%)
Mutual labels:  bootstrap4, bootstrap-4
gpp
General PreProcessor
Stars: ✭ 25 (+31.58%)
Mutual labels:  templating, templating-engine
facebook-clone
Building Facebook clone. As usual, any additional styling will be up to you but the really important stuff is to get the data and back end working properly.
Stars: ✭ 14 (-26.32%)
Mutual labels:  bootstrap4, html-css-javascript
Mikado
Mikado is the webs fastest template library for building user interfaces.
Stars: ✭ 323 (+1600%)
Mutual labels:  virtual-dom, templating
startbootstrap-business-frontpage
A Bootstrap HTML business homepage template created by Start Bootstrap
Stars: ✭ 177 (+831.58%)
Mutual labels:  bootstrap4, bootstrap-4
SketchGen
A Swift command line tool for generating source code from sketch files
Stars: ✭ 27 (+42.11%)
Mutual labels:  code-generator, templating
startbootstrap-small-business
A Bootstrap HTML template for creating marketing websites for small businesses - created by Start Bootstrap
Stars: ✭ 186 (+878.95%)
Mutual labels:  bootstrap4, bootstrap-4
yaproq
A templating language in Swift
Stars: ✭ 57 (+200%)
Mutual labels:  templating, templating-engine
MPACore.PhoneBook
采用MVC+jQuery 的方式进行开发。
Stars: ✭ 51 (+168.42%)
Mutual labels:  bootstrap4, bootstrap-4
Startbootstrap Bare
A bare Bootstrap HTML starter template for rapid development - created by Start Bootstrap
Stars: ✭ 235 (+1136.84%)
Mutual labels:  bootstrap4, bootstrap-4
Startbootstrap One Page Wonder
A simple, one page, Bootstrap HTML website template created by Start Bootstrap
Stars: ✭ 249 (+1210.53%)
Mutual labels:  bootstrap4, bootstrap-4
DevHelpBox
we are creating this community so that other developers can get benefits of it.
Stars: ✭ 35 (+84.21%)
Mutual labels:  bootstrap4, html-css-javascript
startbootstrap-1-col-portfolio
A one column Bootstrap HTML portfolio template - created by Start Bootstrap
Stars: ✭ 60 (+215.79%)
Mutual labels:  bootstrap4, bootstrap-4

Build Status Downloads Downloads Downloads

markyp-bootstrap4

Create Bootstrap 4 web pages using purely Python.

The project is built on markyp and markyp-html.

Installation

The project is listed on the Python Package Index, it can be installed simply by executing pip install markyp-bootstrap4.

Getting started

If you are not familiar with the basic concepts of markyp, please start by having a look at its documentation here.

For a demo of the capabilities of markyp-bootstrap4, head over to the project's GitHub Pages. The source code of that page was generated by the demo.py script that you can find at the root of this repository.

The following example shows how to create a login form using markyp-bootstrap4.

from markyp_html import webpage
from markyp_html.forms import form

from markyp_bootstrap4 import req
from markyp_bootstrap4.layout import container, one, col, margin, offset
from markyp_bootstrap4.buttons import b_button
from markyp_bootstrap4.forms import form_group, form_check, form_check_label, input_, text

def login():
    return form(
        form_group(
            text.h5("Email"),
            input_.email(placeholder="Enter your email address")
        ),
        form_group(
            text.h5("Password"),
            input_.password(placeholder="Enter your password")
        ),
        form_check(
            input_.checkbox(),
            form_check_label("Remember Me"),
            class_=margin(bottom=2)
        ),
        b_button.primary("Sign In", type="submit")
    )

page = webpage(
    container(
        one(
            login(),
            md=6,
            class_=offset(md=3)
        )
    ),
    page_title="markyp-bootstrap4 example",
    head_elements=[
        req.bootstrap_css,
        *req.all_js
    ]
)

print(page)

Here is a list of things to notice in the example:

  • Bootstrap 4's requirements can be import with from markyp_bootstrap4 import req, and the required CSS and JavaScript imports should be added to the head_elements of the webpage.
  • The layout module contains the components you can use to define the layout of the webpage.
  • markyp_bootstrap4 components are grouped the same way as components in Bootstrap 4's documentation. The only difference is here every module name is in plural form.

Related projects

Community guidelines

In general, please treat each other with respect and follow the below guidelines to interact with the project:

  • Questions, feedback: Open an issue with a [Question] <issue-title> title.
  • Bug reports: Open an issue with a [Bug] <issue-title> title, an adequate description of the bug, and a code snippet that reproduces the issue if possible.
  • Feature requests and ideas: Open an issue with an [Enhancement] <issue-title> title and a clear description of the enhancement proposal.

Contribution guidelines

Every form of contribution is welcome, including documentation improvements, tests, bug fixes, and feature implementations.

Please follow these guidelines to contribute to the project:

  • Make sure your changes match the documentation and coding style of the project, including PEP 484 type annotations.
  • mypy is used to type-check the codebase, submitted code should not produce typing errors. See this page for more information on mypy.
  • Small fixes can be submitted simply by creating a pull request.
  • Non-trivial changes should have an associated issue in the issue tracker that commits must reference (typically by adding #refs <issue-id> to the end of commit messages).
  • Please write tests for the changes you make (if applicable).

If you have any questions about contributing to the project, please contact the project owner.

As mentioned in the contribution guidelines, the project is type-checked using mypy, so first of all, the project must pass mypy's static code analysis.

The project is tested using pytest. The chosen test layout is that tests are outside the application code, see this page for details on what it means in practice.

If pytest is installed, the test set can be executed using the pytest test command from within the project directory.

If pytest-cov is also installed, a test coverage report can be generated by executing pytest test --cov markyp_bootstrap4 from the root directory of the project.

License - MIT

The library is open-sourced under the conditions of the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].