• This repository has been archived on 11/Jan/2018
  • Stars
    star
    199
  • Rank 195,237 (Top 4 %)
  • Language
    C#
  • License
    MIT License
  • Created about 10 years ago
  • Updated almost 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Provides extensions, helper classes, model binding, and other goodies to help you use the Bootstrap CSS framework from .NET code.

FluentBootstrap

** Looking For A Maintainer **

This project isn't "dead", but at the same time I won't be doing much more to it beyond fixing bugs. It's complete and production-worthy but my personal interests have shifted more towards code generation (scripting, static sites, etc.) and I am unable to give this project the attention it deserves going forward. If you're interested in taking over, please drop me a line by opening an issue.

Overview

FluentBootstrap provides extensions, helper classes, model binding, and other goodies to help you use the Bootstrap CSS framework from .NET code. It enables using Bootstrap (and to some extent, regular HTML elements) in a variety of different ways without having to worry about HTML, CSS, etc. The goal is to have strongly-typed classes, methods, and extensions that cover as much of the Bootstrap library as possible. Support for generating HTML strings without a web framework, ASP.NET WebPages, ASP.NET MVC, and T4MVC is currently provided.

Status

BuildAppVeyor
FluentBootstrapNuGet
FluentBootstrapWebPagesNuGet
FluentBootstrapMvcNuGet
FluentBootstrapMvcT4MVCNuGet

Example

FluentBootstrap lets you output this:

<nav class="navbar-static-top navbar-default navbar" 
 id="navbar" role="navigation">
 <div class="container-fluid">
  <div class="navbar-header">
   <a class="navbar-brand" href="#">FluentBootstrap</a>
   <button class="collapsed navbar-toggle" data-target="#navbar-collapse"
    data-toggle="collapse" type="button">
    <span class="sr-only">Toggle Navigation</span>
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
   </button>
  </div>
  <div class="collapse navbar-collapse" id="navbar-collapse">
   <div class="navbar-left navbar-nav nav">
    <li><a href="/">Introduction</a></li>
    <li><a href="/Installation">Installation</a></li>
    <li><a href="/Usage">Usage</a></li>
    <li><a href="/Development">Development</a></li>
   </div>
  </div>
 </div>
</nav>

By writing this (for example, if using from an ASP.NET MVC view):

@using (var navbar = Html.Bootstrap().Navbar("FluentBootstrap")
    .SetPosition(NavbarPosition.StaticTop).Begin())
{
    @navbar.NavbarLink("Introduction", "/")
    @navbar.NavbarLink("Installation", "/Installation")
    @navbar.NavbarLink("Usage", "/Usage")
    @navbar.NavbarLink("Development", "/Development")
}

Download

The easiest way to download is via NuGet:

Install-Package FluentBootstrap

If you're using FluentBootstrap with ASP.NET MVC:

Install-Package FluentBootstrap.Mvc

More Information

Please see the project site at http://www.fluentbootstrap.com for more information, installation instructions, and code examples.

More Repositories

1

Scripty

Tools to let you use Roslyn-powered C# scripts for code generation
C#
620
star
2

discoverdotnet

A web site that helps you discover awesome .NET open source and community resources
SCSS
303
star
3

LINQPad.CodeAnalysis

.NET Compiler Platform helpers and utilities for LINQPad - most of the functionality in this library has now been integrated into LINQPad directly
C#
43
star
4

MsBuildPipeLogger

A logger for MSBuild that sends event data over anonymous or named pipes.
C#
24
star
5

daveaglick

The source for my personal website at daveaglick.com
HTML
19
star
6

Presentations

Presentations, sample code, etc.
C#
15
star
7

NetlifySharp

A .NET API Client for Netlify
C#
15
star
8

IssueTweeter

Twitter bot that tweets new issues from one or more GitHub repositories. Powers the @dotnetissues Twitter bot.
C#
10
star
9

LinqToSqlRetry

A simple library to help manage retries in LINQ to SQL
C#
7
star
10

Nxdb

A high-performance embedded XML database for .NET with full XQuery support and a powerful object persistence framework. Based on an IKVM cross-compile of the Java BaseX XML database. Note that this project is no longer maintained.
HTML
6
star
11

FluentFrontend

C#
5
star
12

RazorDatabase

An in-memory collection populated by Razor views and custom metadata. This project is no longer maintained.
C#
4
star
13

Marvin

Marvin is a robot that helps Dave with mundane jobs
C#
3
star
14

IntroToBlazor

C#
2
star
15

IntroToVue

C#
2
star
16

NovaCodeCampVue

C#
2
star
17

RunLooper

A library that makes it easy to execute a single-threaded run loop for applications that lack one (such as console).
JavaScript
2
star
18

Pack1862

The web site for Cub Scout Pack 1862 in Centreville, Virginia
SCSS
1
star
19

NiceThreads

NiceThreads is a simple threading utility library designed to make multiple .NET threading classes easier to use through a more consistent API and various convenience classes.
JavaScript
1
star