crupu

WebJar for crupu

License

License

GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

crupu
Last Version

Last Version

0.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

crupu
WebJar for crupu
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/demaniak/crupu

Download crupu

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/crupu/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>crupu</artifactId>
    <version>0.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/crupu/
implementation 'org.webjars.bower:crupu:0.0.3'
// https://jarcasting.com/artifacts/org.webjars.bower/crupu/
implementation ("org.webjars.bower:crupu:0.0.3")
'org.webjars.bower:crupu:jar:0.0.3'
<dependency org="org.webjars.bower" name="crupu" rev="0.0.3">
  <artifact name="crupu" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='crupu', version='0.0.3')
)
libraryDependencies += "org.webjars.bower" % "crupu" % "0.0.3"
[org.webjars.bower/crupu "0.0.3"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

CopyRight UPdate Util (crupu)

A simple, zero dependency component that will keep a simple copyright notice up to date (current year).

Features

Keeps a simple copyright notice up to date.

For example, it can make sure that the year part of "Copyright © Awesome Company 2016" will always be the current year.

Zero runtime dependencies

Because this is such a simple component, it has no other dependencies.

How

Install

Bower

Install the component with Bower: - bower install crupu --save

Webjar

Add the WebJar dependency to your pom.xml file:

<dependency>
	<groupId>org.webjars.bower</groupId>
	<artifactId>crupu</artifactId>
	<version>0.0.3</version>
</dependency>

Nuget

TODO

Include

Bower

<script src="bower_components/crupu/src/crupu.js"></script>

Webjar

Include in your view with an appropriately sourced script tag.

For example, using ThymeLeaf:

<script th:src="@{/webjars/crupu/0.0.3/src/crupu.js}"></script>

Nuget

TODO

Direct Link

TODO

Use crupu-* classes

Mark the elements you want to keep up to date with the right css classes:

  • crupu-pre : the preamble, in other words "Copyright ©"
  • crupu-year: the full year, for example 2016

Please take a look at sample.html for examples.

But, in short:

Copyright &amp; Awesome Factory x100 <span class="crupu-year">this will be replaced</span>

FAQ

The name is terrible! Don't you want to change it?

Yes, it is horrible.

No, I'm not changing it.

Naming things are hard enough without 2nd guessing and constantly angsting about it.

Ok, forget about the name - why JavaScript?

Because everybody knows javascript. It is probably the only REAL, PRACTICAL cross platform language around today.

It allows me to provide the same functionality to Java, .Net and whatever else you want to use in your backend.

BTW: I still dislike JavaScript. Just saying.

License

Apache License Version 2.0

Versions

Version
0.0.3