### Navigation

- index
- modules |
- next |
- previous |
- Gate One Documentation »
- Developer Documentation »

# The Mobile Plugin

mobile.py - A plugin to enable the use of Gate One on mobile devices.

The Python code of this plugin only does one thing: It adds a single line to the `<head>` of Gate One's index.html page by way of the 'head' hook. Quite literally, this is everything:

    header_hooks = [
        '<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=0">',
    ]

    hooks = {
        'HTML': {
            'head': header_hooks,
        }
    }

See also

https://developer.mozilla.org/en-US/docs/Mobile/Viewport_meta_tag

Note

'head' hooks don't work in embedded mode.

### Navigation

- index
- modules |
- next |
- previous |
- Gate One Documentation »
- Developer Documentation »