0.0
No commit activity in last 3 years
No release in over 3 years
Sass function for adding timestamps to compiled CSS.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 3.2
 Project Readme

sass-timestamp Gem Version

Ruby Sass function for adding timestamps to compiled CSS.

Requirements

  • Ruby Sass 3.2+

Install

gem install sass-timestamp

Usage

  1. Add require "sass-timestamp" in sass option or config.rb if using compass.

  2. Add #{timestamp()} in the header or anywhere in your .scss file:

    /* Compiled on #{timestamp()} */

    output:

    /* Compiled on 2015-02-02 13:01:40 +0800 */

Alternatively, for Unix-style time stamp, use #{unix_timestamp()}.