Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

htmlpress

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htmlpress

Convert static HTML/CSS into dynamic Wordpress themes and templates

  • 0.0.21
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Wordpress

Data attributes providing Wordpress functionality

ACF

Advanced Custom Fields integration provider

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

FAQs

Package last updated on 10 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc