Developing a Split Layer by Attribute Tool using the QGIS Processing Framework.
It is somewhat traditional when extracting features from a layer to select features using a selection expression based upon a specific attribute value and save the selected features to a new layer. This example will show one way to automate the Extract by attribute tool using the QGIS Processing Framework to develop a custom script that will split a layer using unique values from a dialog interface.

The qgis2leaf Plugin.
The qgis2leaf plugin for QGIS is a quick and easy way to get started making Leaflet maps without having to write any html or JavaScript. This plugin takes your styled QGIS layers and generates a customizable Leaflet map that is ready to be posted on your website.