Sha256: 3e8334f2a79dae4a6f017b8463a10e0ed0d75e329f37192831747e8cde4c855b

Contents?: true

Size: 965 Bytes

Versions: 9

Compression:

Stored size: 965 Bytes

Contents

# Ministry of Justice internal template

A basic template built on GOV.UK templates and elements for use in internal
Ministry of Justice services.

## Limitations

Only Rails is supported at present, but it should be possible to use the tools
in `moj_template` to extend this to build other formats for Django etc.

## Usage (Rails)

Add to `Gemfile`:

```ruby
gem 'govuk_template'
gem 'govuk_frontend_toolkit'
gem 'moj_internal_template',
  git: 'https://github.com/ministryofjustice/moj_internal_template.git'
```

In your application template, do something like this:

```erb
<% content_for :head do %>
  <-- Define your own additional styles -->
  <%= stylesheet_link_tag "application" %>
<% end %>
<% content_for :content do %>
  <div id="wrapper" class="">
    <main id="content" role="main" class="">
      <div class="inner-block">
        <%= yield %>
      </div>
    </main>
  </div>
<% end %>
<%= render template: "layouts/moj_internal_template" %>
```

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
moj_internal_template-0.1.9 README.md
moj_internal_template-0.1.8 README.md
moj_internal_template-0.1.7 README.md
moj_internal_template-0.1.6 README.md
moj_internal_template-0.1.5 README.md
moj_internal_template-0.1.4 README.md
moj_internal_template-0.1.2 README.md
moj_internal_template-0.1.1 README.md
moj_internal_template-0.1.0 README.md