Skip to content

[Bolt Extension] A developer extension to add snippets to all available locations in a sensible HTML document.

License

Notifications You must be signed in to change notification settings

anonymous-security-public/TestSnippets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snippet Tester

This extension is only interesting for developers. It inserts a lot of snippets in various locations in the HTML document. Inspect teh source code to see how to insert different snippets in the different locations available. Snippets will be inserted both 'directly', as well as via a callback function.

Snippets are inserted at the following locations:

  • startofhead - after the <head>-tag.
  • aftermeta - after the last <meta [..] >-tag.
  • aftercss - after the last <link [..] >-tag.
  • endofhead - before the </head>-tag.
  • startofbody - after the <body>-tag.
  • endofbody - before the </body>-tag.
  • endofhtml - before the </html>-tag.
  • afterhtml - after the </html>-tag.

To see how these work, read the source in app/extensions/TestSnippets/extension.php.

About

[Bolt Extension] A developer extension to add snippets to all available locations in a sensible HTML document.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%