0.0.21 • Published 5 years ago

htmlpress v0.0.21

Weekly downloads
64
License
-
Repository
-
Last release
5 years ago

htmlpress

Convert static HTML/CSS into dynamic Wordpress themes and templates

Usage

  Usage: htmlpress [options] [command]
  
  Commands:
    help     Display help
    version  Display version
  
  Options:
    -4, --404                 get 404 page (enabled by default)
    -c, --clean               strip processed data attributes when possible (enabled by default)
    -d, --debug               show debugging info (disabled by default)
    -h, --help                Output usage information
    -m, --modules <list>      modules to use (defaults to ["core","wordpress","acf"])
    -o, --output [value]      directory to save theme to (defaults to "./")
    -p, --pages <list>        page url or file paths to parse (defaults to ["/"])
    -r, --root                root path or url (required)
    -s, --sitemap [value]     use xml to find pages (defaults to "/sitemap.xml")
    -T, --test                dry run - don't write files (disabled by default)
    -t, --theme-name [value]  name of the theme (defaults to "Custom Theme")
    -v, --version             Output the version number
    -w, --webflow             is a Webflow-based site (disabled by default)
  
  Examples:
    - process remote site
    $ htmlpress --root com --pages /index /single --output my-theme

  

Documentation

Modules

Core

Data attributes providing PHP integrations

php-echo

Print the result of php code

Kind: instance method of Core

ParamDescription
php_codethe php code to run

php-if

Print the result of php code

Kind: instance method of Core

ParamDescription
php_conditionthe php condition to evaluate

data-attr-src

Replace source attribute

Kind: instance method of Core

Param
name

data-attr-style

Replace style attribute

Kind: instance method of Core

Param
name

Wordpress

Data attributes providing Wordpress functionality

wp-loop

Repeats wp-loop-result element (or else current element) for each repeater

Kind: instance method of Wordpress
See: wp-loop-result

ParamTypeDescription
loop_nameACF_Fieldthe name of the repeater field

wp-loop-result

conditionally repeat this element for each repeater entry

Kind: instance method of Wordpress

ParamTypeDescription
conditionPHP_Expressiontrue, or a PHP conditional to evaluate

wp-menu

Render child tags according to links in a Wordpress Menu

Kind: instance method of Wordpress

ParamTypeDescription
menuWP_Menu_Nametest

wp-template

Wordpress PHP template file

Kind: instance method of Wordpress

Param
name

ACF

Advanced Custom Fields integration provider

acf-block

Register block under block_name and render this content

Kind: instance method of ACF

ParamDescription
block_nameUser-friendly block name to register

acf-field

Render element according to the given ACF field

Kind: instance method of ACF

ParamTypeDescription
field_nameACF_Fieldthe name of the repeater field

acf-repeater

Repeats acf-repeater-row element (or else current element) for each repeater

Kind: instance method of ACF
See: acf-repeater-row

ParamTypeDescription
field_nameACF_Fieldthe name of the repeater field

acf-repeater-row

conditionally repeat this element for each repeater entry

Kind: instance method of ACF

ParamTypeDescription
conditionPHP_Expressiontrue, or a PHP conditional to evaluate