Tidy Template

Developer

Fred Carlsen

3rd Party (Free)

35 downloads (last 90 days)

Download v0.2

EE Version Support

  • ExpressionEngine 2

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Extension

Tags

An extension that removes awful whitespace and the wonky tabbing in rendered templates (for nicer looking source code).

Tidy Template with HTML Tidy in Expressionengine 2.4+

Finally we got a template_post_parse hook in EE, and you know what that means? Time to get rid of all that awful whitespace and the wonky tabbing in rendered templates!

Directions

     
  1. Tweak the Tidy config.
  2.  
  3. Put it in your third_party folder.
  4.  
  5. Enable
  6.  
  7. (optional) Configure your options in the extension settings
  8.  
  9. (optional) Use the {tidy:options} tag:
{tidy:options indent="yes" wrap="200"}


Time spent on this

The options aren’t tweaked, and I spent like 5 minutes on this. Please tweak Tidy config, stop it from adding the whole HTML markup if you only got a poor or improve it any way you want.

Download Tidy Template

EE Support Downloads Add-On Version Release Date
Not Specified Download 0.2

Tidy Template Links

Hooks Used

If the add-on is an extension, and ties into ExpressionEngine's core files, it will use ExpressionEngine hooks. We are listing any hooks the add-on uses for developers to have an easier time locating other add-ons that they can reference for their own work.

  1. template_post_parse

This entry was created October 18, 2013, 8:32 am.
This entry was last updated October 18, 2013, 9:03 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

3 Reviews:

petenice 02.19.14

Rating - {addon_rating_average}

Blew up my masonry stuff

Terry Evans 10.25.13

Rating - {addon_rating_average}

I echo Anthony’s remarks exactly. In the final HTML output of my rendered template the tidy:options tag shows up—seems EE does not recognize it at all.

Anthony DeCrescenzo 10.24.13

Rating - {addon_rating_average}

As it is this is worthless. Some info is missing unless it’s supposed to truly be drop & go.

Added it to third_party, enabled, left with default config: nothing.
Modified config: nothing
Added single tag to template per sample: nothing
Added closing tag to make tag pair: nothing

What gives?