Skip to main content

Simple generator for Go multi-page site

Project description

map-gen

PyPI version GitHub license

Generates directories and files for multi-page site with backend on Go (gin).

Generates:

  • layouts
  • views (page templates)
  • controller stub with in/out params parsing
  • utils for bootstrap

Requirements:

  • Jinja2
  • Python3.4+ (actually could run even on lower version but I didn't test)

Installation

pip install mpa-gen

Usage

usage: mpa-gen [-h] [--dir DIR] [--method METHOD] section name

multi-page site generator

positional arguments:
  section          Section name (ex: user/messages)
  name             Resource name (ex: dialog)

optional arguments:
  -h, --help       show this help message and exit
  --dir DIR        Root directory
  --method METHOD  HTTP method: GET or POST

  • default method: GET
  • default directory: current working dir

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mpa-gen-0.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

mpa_gen-0.2-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file mpa-gen-0.2.tar.gz.

File metadata

  • Download URL: mpa-gen-0.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for mpa-gen-0.2.tar.gz
Algorithm Hash digest
SHA256 b56afcd2d06cab7bbb0ac5fb30c83e8a56c6caa6d681a7f98ed63284f9fd3726
MD5 55b778e501aaf815c10fd4ceb84b03e9
BLAKE2b-256 27bd2359a53003ea8b34ce75bf754399043815773a197755569aafa17ce03017

See more details on using hashes here.

File details

Details for the file mpa_gen-0.2-py3-none-any.whl.

File metadata

  • Download URL: mpa_gen-0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for mpa_gen-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 84a33c705a4998586f300b54e58dd480f523d6219a54adcdc3e747139363a153
MD5 8646b945bf5c7bea3cee92bdc713b640
BLAKE2b-256 2d03089238ae89cf31241b80e39e918f9aa80096af6180ed727e8a9c71e36836

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page