Skip to content
Ollie edited this page Dec 29, 2013 · 3 revisions

Welcome to the Typofinder wiki - the below are some rough notes for development.


Adding new output in a v2 world

In the v2 API the following functions needs updating in the front-end:

  • generateTag: this function needs to set bVal true for an accordion entry to be created for the domain.
  • fillDetails: this function parses / builds the results div for the accordion entry for the domain.

In the v2 API the following function needs updating in the back-end:

  • handleHostAJAX: this function returns the object to the client which is then parsed by generateTag / fillDetails in the front-end

You will also likely need to update class objtypo , specifically reprJSON if you're adding new members to the object. This function is used to generate the dictionary for the json.dumps call when returning to the front-end.

Clone this wiki locally