<commit_before>.. _manual-views:

################
Dropwizard Views
################

.. highlight:: text

.. rubric:: The ``dropwizard-view`` module provides you with simple, fast HTML views using the
            Freemarker_ templating library.

.. _Freemarker: http://freemarker.sourceforge.net/

To enable views for your :ref:`service <man-core-service>`, add the ``ViewBundle``:

.. code-block:: java

    public MyService() {
        super("my-service");
        addBundle(new ViewBundle());
    }

Then, in your :ref:`resource method <man-core-resources>`, add a ``View`` class:<commit_msg>dropwizard-views instead of dropwizard-view<commit_after>.. _manual-views:

################
Dropwizard Views
################

.. highlight:: text

.. rubric:: The ``dropwizard-views`` module provides you with simple, fast HTML views using the
            Freemarker_ templating library.

.. _Freemarker: http://freemarker.sourceforge.net/

To enable views for your :ref:`service <man-core-service>`, add the ``ViewBundle``:

.. code-block:: java

    public MyService() {
        super("my-service");
        addBundle(new ViewBundle());
    }

Then, in your :ref:`resource method <man-core-resources>`, add a ``View`` class:
{'fraction_non_alphanumeric': 0.1847914963205233, 'fraction_numerical': 0.0, 'mean_word_length': 3.744186046511628, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2985060', 'n_tokens_mistral': 364, 'n_tokens_neox': 355, 'n_words': 104}