Skip to content

Jonathan-Jan/ke-keyword

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ke-keyword

A not usefull directive to auto create a link from a word

Installation

npm install https://github.com/Jonathan-Jan/ke-keyword

Features

  • "Automatic" creation of an <a> html element referencing a pre-defined page
  • That's all
  • What are you doing here ?

Quick exemple

here's a quick exemple of how to use ke-keyword

js

First, you have to notice that keKeyword use a global variable named _keyWords where you should store matching map between keyword and link.

let _keyWords = {};

Add a keyword to the map

_keyWords['Tour Eiffel'] = 'https://fr.wikipedia.org/wiki/Tour_Eiffel'

Your HTML

<ke-keyword>Tour Eiffel</ke-keyword>

Result

<a href='https://fr.wikipedia.org/wiki/Tour_Eiffel'>Tour Eiffel</a>

No Test ?

Nope... Sorry

License

MIT - see LICENSE.md.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published