Commit Graph

50 Commits (master)

Author SHA1 Message Date
Zach Thompson e4a87d1256 Merge pull request #3337 from duckduckgo/gd/cheat-sheet-template
Templates: Ensure cheat sheet file names are hyphenated
2016-07-07 11:34:44 -06:00
sdua 7c69186cf6 Add 'use warnings' to backend template 2016-07-06 10:30:02 +00:00
sdua f2db9cd6a5 Template: Use of single quotes 2016-07-05 15:58:33 +00:00
Ben Moon b95d73789f Ensure cheat sheet file names are hyphenated 2016-07-02 11:56:40 +01:00
Zach Thompson 483a2915e1 Merge pull request #2881 from duckduckgo/gd/templates-formatting
Goodie Templates: Improve formatting
2016-04-18 12:16:11 -06:00
Ben Moon 96cf763863 Add Test::Deep to Goodie template
We can now use Test::Deep for tests, ain't that awesome?
2016-04-16 19:31:39 +01:00
Ben Moon 920880cfb8 Remove class quotes
These were breaking the build.
2016-04-13 17:55:59 +01:00
Ben Moon b7e33b8721 Correct indenting 2016-04-13 17:55:41 +01:00
Ben Moon 20688f0efe Correct typos 2016-04-13 17:54:05 +01:00
Ben Moon 5a1b1293f4 Add structured_answer builder template to tests 2016-03-26 15:04:02 +00:00
Ben Moon 1b9b7a61ac Remove name and ID from structured answer template 2016-03-26 15:03:07 +00:00
Ben Moon 0a338d97cc Merge pull request #2688 from tagawa/tagawa/small-fixes
Cheat sheet template: Added missing template types
2016-03-03 20:49:56 +00:00
Daniel Davis 7d4d513647 Cheat sheet template: Added missing template types 2016-03-03 16:45:10 +09:00
Zach Thompson 037b566b97 Revert "Revert "Make the handle a template parameter"" 2016-02-16 16:15:00 -07:00
Zaahir Moolla cc3d54f455 Revert "Make the handle a template parameter" 2016-02-16 18:01:44 -05:00
Ben Moon 246509ae52 Merge pull request #2085 from duckduckgo/zt/template-handler
Make the handle a template parameter
2016-02-16 08:34:41 +00:00
Zaahir Moolla f76ae5f046 add missing comma to normalize function 2016-01-24 23:00:02 -05:00
Zach Thompson de4ca92969 Add trigger for all module templates 2016-01-21 09:52:21 -07:00
Zach Thompson 6bbbf8cc61 Add trigger to template too since certain handlers require certain trigger types 2016-01-21 09:50:18 -07:00
Zach Thompson b1f367cc81 Make the handle a template parameter 2016-01-20 14:02:08 -07:00
Zaahir Moolla 0b000904c6 Update Goodie Overview link 2016-01-13 18:29:11 -05:00
Zaahir Moolla 66e7a8e1dd Update Goodite template URLs for new documentation 2016-01-13 18:25:26 -05:00
Zaahir Moolla 36a21e1422 remove capital letter from example trigger words 2016-01-11 16:50:14 -05:00
Zach Thompson 53b8c46fb5 templates.yml: Add javascript-focused template group
Minimal: A Perl mod template geared toward processing the query in javascript
2016-01-11 10:34:39 -07:00
Sarvesh D f5b26b9969 templates.yml: Remove 'needs_restart' field...
...from template definitions. See https://github.com/duckduckgo/p5-app-duckpan/pull/296 for details
2015-12-26 23:39:22 +05:30
Sarvesh D 9cf8c7e4e4 templates.yml: Disabled subdirs for cheat sheets.
For example, "hello/world" will no longer be an accepted name
for a cheat sheet instant answer.
2015-12-11 02:54:14 +05:30
Sarvesh D 2c48748e12 templates: Added optional handlebars file 2015-12-10 21:21:40 +05:30
Sarvesh D 08fde96f65 Added templates.yml for generic template support 2015-12-10 07:14:28 +05:30
Sarvesh D 5a7352af6c Added sample Goodie CSS file 2015-12-10 07:14:28 +05:30
Sarvesh D 6ca971a9a9 Added sample CheatSheet JSON file 2015-12-10 07:14:28 +05:30
Sarvesh D 11b00c1bb1 templates: use ia_id instead of lia_name 2015-12-10 02:07:52 +05:30
Zaahir Moolla 7414639194 remove extra single quote, comment out tempaltes block to prevent overwriting Perl by default 2015-11-25 14:04:43 -05:00
Zaahir Moolla 65ab1cf08e remove extra closing bracket 2015-11-17 17:00:18 -05:00
Zaahir Moolla f2ffe39f55 Update template further 2015-11-17 14:58:31 -05:00
Zaahir Moolla fb33450f8d Convert tabs to spaces 2015-11-14 11:52:21 -05:00
Zaahir Moolla 6fd9f1114f Update template Perl, add template JS file 2015-11-14 11:51:44 -05:00
Zach Thompson 05bbb7b4ca Remove metadata from template
Remove some of the unnecessary checks in remainder
2015-10-30 14:26:05 -06:00
Thomas Denizou c5be281fe0 "Use strict" on remaining goodies 2015-05-15 18:36:25 -04:00
moollaza 3f5f508ec4 switch from tabs to spaces 2015-03-09 18:30:15 +00:00
Zaahir Moolla 5fc20fa776 update Goodie template, currently adding extra depth to code_url link 2014-11-12 23:25:29 -05:00
Matt Miller a2f7de4a97 templates: add more guidance information.
- Explicity label both category and topics to be completed with a link
  to appropriate section of the metadata docs
- Request tests for example queries and some negative samples.
2014-10-20 06:44:48 +02:00
Zaahir Moolla ff98b9a0a5 add missing semicolon to attribution, comment out empty category and topic 2014-10-19 20:09:10 -04:00
Zaahir Moolla b38a76eee2 whoops, fix typo 2014-10-15 23:29:27 -04:00
Zaahir Moolla f823f79294 Update templates to match duckpan new updates 2014-10-15 23:26:59 -04:00
Matt Miller ff65eab80c Example.pm template: correct code_url 2014-09-30 23:27:43 +02:00
Matt Miller a7a2cd9ffe Example.pm template: freshener updates
- Point to metadata docs to help fill out section.
- Reorganize metadata into same order as docs.
- Remove "icon_url" and "source" which do not generally apply to
  Goodies.
- Better example strings for the `attribution` section.
- Use "guard" before "work" in example code.
2014-09-30 20:43:52 +02:00
Zaahir Moolla 9d30237426 Merge pull request #639 from mwmiller/new_templates
templates: update to include basic ZCI attributes.
2014-09-22 19:24:40 -04:00
Matt Miller 94fa143731 templates: update to include basic ZCI attributes.
There will likely be some debate about whether or not to include the
`is_cached` value, but I like making it explicit even when there is
a default.

On the `answer_type`, the tests as produced by `duckpan new` could
not pass. It might not be entirely clear to the new developer how to
add the `answer_type` and fix them.
2014-09-16 08:56:30 -04:00
Matt Miller 28b9caf6d6 Example template: minor copy fixes.
- 'Write and abstract' -> 'Write an abstract'
- 'dukgo.com' -> 'duck.co'
2014-09-15 15:26:13 -04:00
Zaahir Moolla df8feb651d Small updates to template files 2013-10-28 16:18:28 -04:00